Notifications
Announcements
Hey everyone.
I have a gallery with a text label. I would like the text label.height to be 0 if it is blank, but I would also like it to have auto height True if the height is between a certain number. And then I would like it to have a max height. For example between 1 and 140 would be flexible. and then 140 would be the max size and scrolling would be enabled if it was any larger. Hope that makes sense. Any idea how I can accomplish this? I've tried a bunch of different idea with no solution.
Thanks!!
@Charliemacdmv I don't think AutoHeight and a min/max height condition is possible.A workaround could be working with 2 conditional labels.(1) We will use the first label for the auto height functionality.
//(1) The label will only show if not blank and if label2 is not visible !IsBlank(Self.Text) && !Label2.Visible //(2) auto height property will be true true
(2) The second label will only show once we have reached the max height threshold:
(1) Visible property: Label1.Height > 140
The second label would have a static height and be scrollable.I hope this helps!
@LaurensM OMG Why didn't I think of that lol. You get so stuck on one thought... Thank you!! That will work for sure.
@Charliemacdmv happens to all of us, sometimes you just need another pair of eyes to look at the issue 😉If it fully solves your problem, would you be so kind as to mark/accept it as a solution?This also helps the community members, in case they run into a similar issue.Thanks!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268