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 / Vertical Container won...
Power Apps
Unanswered

Vertical Container won't adjust the height of the fill portion

(0) ShareShare
ReportReport
Posted on by 32

Here's the scenario:

I have a vertical container, which contains several forms, galleries, and labels.  However, the container is having issues with the forms within the container that have dynamic heights.

On the forms, there is a datacard that is conditionally visible/invisible.  There is also a datacard that is always visible and always at the bottom of the form called LastDataCard.  The height of the form changes depending on whether or not the conditional card is visible so I set the minimum height of the form to DataCardLast.Y+DataCardLast.Height.

This worked wonderfully until I closed and opened the app.  When I reopened the app, the sections had all collapsed and the value for the height is showing as 55, when the calculated height should be 250.

 

I tried toggling flexible height on and off, and still no luck.

 

If anyone has any suggestions, I'd appreciate it

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @Waveflux ,

     

    Maybe you could try to use the if() function on the Height property of the Form.

    I assume this conditionally visible/invisible data card is called DataCardFirst, if the DataCardFirst is visible, the Form uses the original height, if the DataCardFirst is not visible, the form uses the calculated height.

     

    If(DataCardFirst.Visible,orginnal height,DataCardLast.Y+DataCardLast.Height)

     

     

    or

    If(DataCardFirst.Visible,orginnal height,250)

     

     

     

     

    Best Regards,
    Charlie Choi

  • Verified answer
    Waveflux Profile Picture
    32 on at

    Thanks for your input.  The solution was to toggle the flexibleheight property from 0 to 1 to 0 in the screen.OnVisible property.

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