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 / Auto Adjust Height of ...
Power Apps
Answered

Auto Adjust Height of Text in Inspection

(0) ShareShare
ReportReport
Posted on by 14

Hi

 

I'm using the Teams Inspection App as a template and using PowerApps to modify it

 

I'm currently struggling to get the checklist step information section to auto adjust to the height of content entered for this section(edited through Manage App). 

Theres 2 objects that contain height values(below), Im not sure what properties to adjust to get this to work

 

Screen: Checklist Steps Screen

- btnInstructions (Button)

-lblInstructionsForHeight(Label)

 

Categories:
I have the same question (0)
  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi
    Do you want to make a label auto adjust to the height of its contents? 

    If yes, have you tried to enable the "Auto height" property of the label? Actually, the AutoHeight property was designed to estimate the content size and to adjust its height accordingly. So just try to enable this property.

    valbaimsft_0-1625630416120.png

    If I misunderstand your requirement, please provide more information(better with screenshots) for helping me understand your needs better. 

    Best regards,

    Allen

  • LKMead Profile Picture
    14 on at

    Hi 

     

    I already tried by having the Auto Height selected for the label and doesnt work. 

    LKMead_0-1626158963524.png

    Above is the screen objects, from what I can see is that the label is meant to control the height of the text pulled from the table on the button

     

    Height Property for btnInstructions 

    /control the height of the button based on the height of lblInstructionsForHeight
    If(
    gblExpandVar && !LookUp(
    colStepDetails,
    Value = ThisItem.'Checklist Step'.'Area Inspection Checklist Step'
    ).ExpandInstruction,
    lblInstructionsForHeight. Height+ 10,
    80
    )

     

    Text Properties

    //"Helpful text with learn more links and expandable to two lines before expand icon appears"
    If(
    lblInstructionsForHeight.Height > 80,
    ThisItem.Instructions,
    ThisItem.Instructions
    )

     

    lblInstructionsForHeight

     

    Autoheight: True

    Height: False

     

    I have also trued the other way around for height properties

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard