
Announcements
I have a Gallery in which I have several fields.
Two of the fields (Label1 and Label2) are set to 'Auto height', and
there are times when the content in those fields overrun the gallery.
The height of the fields may be different from item to item. I'd
like the gallery height to max out to the item/row with the field
with the greatest height - meaning all items/rows will be as high
as the highest.
I am currently using the following in the gallery 'TemplateSize'; It
compares the height of Label1 to Label2, and should adjusts the
TemplateSize to the label with the greatest height plus 20.
But I'm still getting overrun. Is there a way to force the TemplateSize
to be as deep as the field that is highest regardless of item/row?
If(Label2.Height > Label3.Height,Label2.Height +20,Label3.Height +20)
In one of my app, I managed it with a "Flexible height gallery". Just set the two fields as autoheight, did not change anything in the gallery, and everything went fine. Hope this will work on your side as well.