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 / Gallery Template Height
Power Apps
Suggested Answer

Gallery Template Height

(0) ShareShare
ReportReport
Posted on by 32
In PowerApps, I am creating a nested gallery to display selected filters.  I am sharing a screenshot that shows the layout. However, as it show, the nested gallery is overlapping even though it is set on the autoheight.  Is there anyway I can set the template height dynamically so it sets differently for each item? I have added vertical container to set gallery to auto height, still not working. 
 
  
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,095 Moderator on at
     
    This happens because Gallery TemplateHeight is NOT dynamic. Power Apps uses the same height for every row, so a nested gallery with variable content will overlap even if the container is AutoHeight.

    To Fix:
    Use vertical containers (AutoHeight = true) instead of a nested gallery, or move the variable content into labels/containers that can individually auto‑resize inside a single gallery item.

    In short:
    Galleries can’t auto-size per item, but containers can. That’s why your layout is overlapping.
     
    Ref:
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
  • Suggested answer
    11manish Profile Picture
    2,293 on at
    Best workaround is to calculate TemplateSize using CountRows() or avoid nested galleries using flattened data
     
    Set Parent Gallery → TemplateSize like this:
    Max(
        100,
        CountRows(ThisItem.ChildCollection) * 40
    )
    Explanation:
    • CountRows() → number of child items
    • 40 → height of each child row
    • 100 → minimum height
    or use Vertical Container 

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 875

#2
Valantis Profile Picture

Valantis 530

#3
11manish Profile Picture

11manish 432

Last 30 days Overall leaderboard