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 / Flexible height galler...
Power Apps
Unanswered

Flexible height gallery doesn't adjust

(0) ShareShare
ReportReport
Posted on by 18

Hello, here's what I'm trying to make: I want to make an "accordion" style nested gallery similar to what's shown in this video: Power Apps Accordion Gallery (Expand/Collapse Gallery) - YouTube. The user should be able to click items in the parent gallery to expand its child gallery. They should be able to click it again to hide it. Everything should shift up and down accordingly to conserve space. 

 

Here's my issue: the galleries don't seem to be adjusting like they are in the YouTube video. Both the parent and child galleries are flexible height galleries. When a child gallery item isn't visible, it just leaves a big white space as shown below.

 

Screenshot 2022-08-05 155144.png-mh.png

Categories:
  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Doing this is very frustrating thing to work with. You got to basically make sure you build in the height of the child gallery from how many items you have in that child gallery. So the Height Property of child gallery is set to something like "CountRows(Self.AllItems) * 50" or the height of your child item site needs to be. So 50 in my case. In your case you would attach that to your minimize effect. So the height would be on a condition saying 0 if no items in it, else CountRows(Self.AllItems) * 50  etc. 

     

    You can't really get a double auto adjustment unfortunately. At least from my experience, and you got to get it close based on setting the child gallery size which the parent adjusts too is the only way  I could get it to work, and even that video I believe has that mixed in there. 

     

    Good luck! I've lost some hair trying to get these things working right! 

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard