Hi,
Been working wth MS Support on this one and would have thought this to be a common use case scenario.
When running a flexible height gallery, if you turn on Auto Height for a column, which results in some rows increasing there size (which is perfect) BUT
the other columns vertical align doesn't work
(in my case I require them to be middle.
Interestingly enough, there was no responses to this question in my previous post.
Cheers
Todd
Imagine your control with the auto-height option turned on is called AutoHeightControlName and is allways the tallest control). You can create a label control (lblTallest) inside the gallery with AutoHeightControlName.Height set as its Height property. Then, use Value(lblTallest.Text) to get the height of each gallery row.
If AutoHeightControlName is not always the tallest control, use Max function in lblTallest.Text property including other control heights.
I've been having the same problem within containers, the autoheight works unless it's stretching to the size of the container. In this case the workaround is just to set align in container to centre but you would have expected it to respect the alignment in the text label for shorter text.
Hi @Tango ,
You could play with a conditional Y value for them based on the Height of the other label - this gets fairly close
OherLabel.Height/2 - Self.Height + (Parent.TemplatePadding*2)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional