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

PowerApps - Container - Conditionally set height based on Controls visibility

(1) ShareShare
ReportReport
Posted on by 77
Dear All,
 
I'm building a canvas app using 'Scrollable' screen. Under Canvas, having multiple sections & each section has multiple containers. The base container is horizontal container and inside that having other containers as per business requirement.
 
I have question regarding one such section where the base container is Horizontal. It has 3 vertical containers & 1 horizonal containers inside it. As per business logic some containers will be having Visible property as true or false. I want to set base container's height depending upon visibility of child containers. I tried 'If-else' condition but it's not giving me expected result. 
 
I would appreciate if anyone please guide me here with sample example.
 
Thanks,
Sanjay
I have the same question (1)
  • WarrenBelz Profile Picture
    154,757 Most Valuable Professional on at
    Set the Height of the "child" containers to
    If(
       Self.Visible,
       YourNormalHeight,
       0
    )
    then have the Height of the "parent" as the sum of the "child" containers.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard