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 / Subgallery expander an...
Power Apps
Unanswered

Subgallery expander and collapse got overlap

(0) ShareShare
ReportReport
Posted on by 155

Hi,

 

I designed a gallery with subgallery, set it expand and collapse when selected. It is working good if "Lock aspect ratio" turned on. However it got overlap after I turned off the option.

the subgallery.heitht = CountRows(Subgallery.Allitems) * 55.

Can anyone give some advise? thanks.

overlap.jpg

Regards

Steven

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

    Hi @StevenZhang ,

     

    Could you please show us the full setting of screen size and orientation and more details about how do you design the expander? It can help us reproduce your issue.

     

    Note: please ensure the Main Gallery is Flexible Height Gallery

    Sik

  • StevenZhang Profile Picture
    155 on at

    Hi Sik,

     

    Here are the steps,

    1. Put a flexible gallery and put a label to show title.

    2. Put a gallery inside the first gallery, set  properity Y = Label.Height, Height = CountRows(Gallery7.AllItems) * 60, Visible = ThisItem.IsSelected.

    here is the settings,

    setting.jpg

     

    Regards

    Steven

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi  @StevenZhang ,

     

    I made a test based on your code and settings, but cannot reproduce your issue.

     

    I made a similar expander gallery component and it worked well when 'Lock aspect ratio' function is off. 

    Could you please try this? Please find the attachment.

    All you need to do is to import it into App, and Modify the ComMenu.MenuItems property in Component Designer.

    Hope this helps.

    Sik

  • StevenZhang Profile Picture
    155 on at

    Hi Sik,

     

    You are not using gallery. can you please try to use attached smple app I just created with data source excel spreadsheet.

    I am using table1 as data source of main gallery and table2 for subgallery.

     

    Regards

    Steven

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @StevenZhang ,

     

    I just import your attached app, and the expander gallery layout works properly. please find the test result and configure settings.

    GIF_71.gif

    Could you change the other browsers to try again? Also, Could you tell me why you turned off that feature?

    Sik

     

  • StevenZhang Profile Picture
    155 on at

    Hi Sik, 

     

    Thanks for your quick responding.

    Have you published the app? did you try on a big size monitor, my testing is good on my 14 inch laptop, but it will be overlap if it is showing on a 23 inch monitor.

    The reason to turn off the option is we don't want to leave too much empty area on the screen. Please see attached screen it has blank area on the left and right side.

    full screen.jpg

     

    Regards

    Steven

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
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard