Hi@Bunly11,
Based on the issue that you mentioned, do you want to make the Label automatically adjust the row of the Gallery?
Could you please share a bit more about the scenario, do you mean that you want to enlarge the Label to display all the text within?
Actually, the AutoHeight property was designed to estimate the content size and to adjust its height accordingly. A row within a Gallery might also be taller than you expect if it contains a control for which the AutoHeight property is set to true.
If my understanding is correct, what you want is to change the template size of the gallery based on the data in the Label. As for that you also want to shrink the box if the label is empty, I am afraid that there is no way to achieve this in PowerApps currently.
In a word, surely you could make the Label auto high, while it is impossible to adjust the Label to shrink when it is empty.
I have a test on my side, please take a try as below.
- Set the Label AutoHeight property: true
- Find and copy the expression in the Y property of your needed Label
- Put the copy result in Gallery TemplateSize property and do an addition:
Min(168, Self.Height - 60)+Subtitle1.Y + Subtitle1.Height + 4​


Best Regards,
Qi