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

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
    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

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