web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery Template Size ...
Power Apps
Unanswered

Gallery Template Size / Height

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

I have a Gallery in which I have several fields. 

Two of the fields (Label1 and Label2) are set to 'Auto height', and
there are times when the content in those fields overrun the gallery.

The height of the fields may be different from item to item. I'd
like the gallery height to max out to the item/row with the field
with the greatest height - meaning all items/rows will be as high
as the highest.

I am currently using the following in the gallery 'TemplateSize'; It
compares the height of Label1 to Label2, and should adjusts the
TemplateSize to the label with the greatest height plus 20.

But I'm still getting overrun. Is there a way to force the TemplateSize 
to be as deep as the field that is highest regardless of item/row? 

     If(Label2.Height > Label3.Height,Label2.Height +20,Label3.Height +20)

Categories:
I have the same question (0)
  • Verified answer
    LapisLazuli Profile Picture
    59 on at

    @Phineas 

    In one of my app, I managed it with a "Flexible height gallery". Just set the two fields as autoheight, did not change anything in the gallery, and everything went fine. Hope this will work on your side as well.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard