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 templateSize b...
Power Apps
Unanswered

Gallery templateSize based on height of nested gallery

(0) ShareShare
ReportReport
Posted on by 301

Hello,

I have a gallery (galExtBotContaminant) nested inside a gallery (galContainerListExtBot).  The nested gallery will change height from 0 (no records) to 81 (1 or more records).

The Parent gallery's Template size needs to have a value/height based on the nested gallery height + 90.

No matter what, if there is a record within the Parent gallery where there is a nested galley with a value of 81 then all the parent gallery items get a templatesize of 171 (81+90).

For example Item13 I would have expected to have a templatesize of 90, because the nested gallery has a height of 0.

I don't understand why this is happening.

Is anyone able to provide advice?  

PA-galleryTemplateSize.PNG

Categories:
  • v-JessicaG-msft Profile Picture
    Microsoft Employee on at

    Hi @Rosie ,

     

    Sorry but I am afraid there is no way to achieve your goal.We can use TemplateSize to modify the height of the Gallery template in the Gallery, but using the height of the controls in the Gallery in the TemplateSize property to modify the height of the Gallery templates cannot be take effect.

     

    Best Regards,

    Jessica Gu

  • Rosie Profile Picture
    301 on at

    @v-JessicaG-msft ,

    Thanks for your reply.

    So there is no way to have each TemplateSize be different based on the content that would be in each section of the gallery?

    I have tried many ways to do this, it doesn't have to be based on the control.  I just want the template size to be 81 when there is no record to show in the nested gallery and 171 when there is.

     

    Many thanks

    Rosie 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard