Row height in a gallery - gallery

Im pretty new at powerapps.
Anyway I have a gallery where I have a variable which contains questions and another row which contains the answer to the questions. On a few questions the answer is not text but rather an image. When the user scrolls through the gallery I would like the row column height for the Image answer to be bigger than the row column height where there is text. I tried in a million ways with no success.
If anyone can help me and show me the way . I would really appreciate it
If you do not have the answer thank you as well for taking the time to read my post
Thank you
Ive tried to crate a text label (ie Label4_Height)which determines if the result is an image or text ans setting that variable to a value
In the height of the Text variable or Image variable i set its height to the value of the Label4_Height variable

Try using a Flexible Height gallery.

Row height of Gallery is defined by TemplateSize property of the Gallery.
Default TemplateSize is the height of the Gallery.
When you increase/decrease the TemplateSize it will automatically reflect the row height.
Hope this helps!!

Related

Clarity Design Datagrid how to change column width

I want to manual set column(head and body) size(width, height).
I tired to set style but not work and find all document not found about this.
DataGrid Component
DataGrid set width size not work
Setting the column width:
<clr-dg-column [style.width.px]=“200”>my column</clr-dg-column>
This will also set width for all column cells.
To control height and width you can either put the datagrid inside a container with a set height/width.
After i tired use set style on template(html)
my column
I have other problem when use follow Server Driven(https://clarity.design/documentation/datagrid/server-driven)
When next pagging each column length adjusted according to data i found overlap column
Data overlap column
and when binding long length data i found header separate column incorrect
header wrong separate column
My solution i think i have to loop for looking longest length and setting style width and writing logic in to typescript.
Have any solution easy way please suggest me.

QTreeWidget that contains widgets and set row height issue

Setting row height is more or less trivial via inherit from QItemDelegate.
The problem is that I can make the row size bigger but I cannot make it smaller if I add a widget inside.
Any tip on this?
Thank you in advance.
Maybe your widget QWidget::minimumSize().height() is bigger than you want to set in your row height?
Also, maybe you will post some related code?

How to span the single column in an ASP.NET Gridview HORIZONTALLY

i have a Gridview with a single column which is a template field with an image and a label.
By default, the gridview expands vertically according to the items in the datasource.
But in my case most of the screen space is left unused and the page becomes extremely long.
So it'd be great if the one and only template field automatically becomes a new column (starts again from the top next to it's initial position after a fixed height) or SPANS HORIZONTALLY, not vertically...
i've done some searching and still can't find a solution for this..
any help would be great..!
i took 2 screenshots for a better explanation but the site won't allow me to post images yet :/
I think you are looking for the DataList control. Namely, the RepeatColumns property.

Remove blank row in Flex DataGrid (Flex 3)

I am encountering a problem similar to How can I make datagrid height is equal to data content in Adobe Flex however suggested answers did not work for me.
The blank row at the end of the DataGrid does not display at first, until I begin editing editing the last row, at which the entire grid is immediately pushed upwards, making the top row disappear and the blank bottom row reappear.
Nikhil's answer in that post said that setting the height to count the overall height including the header as well as setting the verticalScrollPolicy to off still did not help me.
Barts answer from that post usually does it for me: How can I make datagrid height is equal to data content in Adobe Flex
And then setting
dataGrid.VerticalScrollPolicy = ScrollPolicy.OFF;
Added headerHeight to the grid to get it working for me for exactly the same problem. I don't see any correlation but that's how flex rolls.
Try the following code. It works for me!
contentDataGrid.dataProvider = orgData;
//contentDataGrid.rowCount=orgData.length;
contentDataGrid.height = ((orgData.length)*18 + contentDataGrid.headerHeight+5)
Here '18' is my rowheight. As I don't want to set verticalScrollPolicyto off, I added an extra 5 to the datagrid height (to avoid the scrollbar).Assume orgData is the data provider.

Change the height of a list item when it's in edit mode

I have custom list item renderers and editors for a List control. I need for the editor to have a greater height then the renderer, i.e., the row should expand(in height) when it goes into edit mode. However, even when the list's variableRowHeight is set to true, it doesn't do what I want: the height seems to be based on the height of the renderer only, not the editor. Is there any way to do what I want?
Have you tried setting the height of each of the renderers on the row that the editItemRenderer is on.
If my memory serves me correctly the varible row height takes its height from the first column cells (this may be wrong?)
If you have varibleRowHeight then when you go to edit a cell make sure all cells in the row are the same height and you may also have to invalidate the size and display.
If you have already solved this post your answer as it would be interesting to see what different approaches you may have taken.

Resources