web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Text label max value f...
Power Apps
Unanswered

Text label max value for AutoHeight

(1) ShareShare
ReportReport
Posted on by 53
Good morning everyone,
In Power Apps is there a way to set a maximum height for a label with AutoHeight?
I need a label that expands in height for a maximum of rows and then stops, is this possible?
Thank you
Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at
    Hi,
     

    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!

    https://community.powerplatform.com/forums/thread/details/?threadid=67e0f03d-d057-4935-a486-37676169aaf5

     

  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    pls try the following: 
    • Add a secondary (hidden) label with AutoHeight enabled. Set its Text property to the same text as your primary label.
    • Use this secondary label to calculate the actual height required.
    • Set the primary label’s Height property with a conditional formula: - Min(AutoHeightLabel.Height, MaxHeight)
       
  • Suggested answer
    simno Profile Picture
    53 on at
    Good morning,
    thank you all for the responses, I tried to test the solution you posted in my app and it works for me.
    Thank you again
    Good bye

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard