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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is it possible to set ...
Power Apps
Unanswered

Is it possible to set a max height on an autoheight label?

(0) ShareShare
ReportReport
Posted on by 466

I have a scenario where I want to use the autoheight feature on a label but want to prevent it from expanding beyond X height. Is this possible?

Categories:
  • PaulD1 Profile Picture
    2,914 on at

    I don't believe you can set a max height on an auto-height label, but you can do the following:

    Make two labels, one auto-height (lblAutoHeight) the other normal (lblNormal). Make sure the widths and text properties (font, size, weight, etc.) are the same in both.

    Set the height of lblNormal to: If(lblAutoHeight.Height > 500, 500, lblAutoHeight.Height). This assume 500 in the max height you want.

    Now set the X of lblAutoHeight such that it is in the margin of the App (e.g. App.Width + 5) or make the visible property false (personally I avoid invisible controls as they are very problematic for maintenance/support).

    This approach is a bit ugly, but I believe it will achieve what you want.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard