Hi Everyone,
I have been working on a new app and I am using a gallery to display some data, within each gallery item I have one field that has some variably longer text in it, so I want to update the TemplateSize property based on the height of the field that contains the longer text, so that the text does not overrun the template into the next gallery item.
I have a label Title8_9 (yes badly named) which contains the long text and sits inside the gallery item template, this is set with autoheight ON.
I tried changing Template Size property to :
Title8_9.Height + 20
This works but only AFTER an item is selected, otherwise it only reads the height as 20 (or whatever value I am adding to it) I did some investigation and it seems that the Title8_9.Height does not always carry a value:
Before clicking to select a gallery item:
There is no value for Title8_9.Height , so my templatesize is coming out as 20.
After clicking a gallery item, Title8_9.Height now has a value of 81:
So now the total is 101 which is how I want it to work, but without first needing to select a gallery item.
Am i missing something obvious here? Or is it just how PowerApps is processing height values when AutoHeight is being used?
Thanks for any help!

Report
All responses (
Answers (