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 / [BUG] Gallery template...
Power Apps
Unanswered

[BUG] Gallery template size breaks when screen size changes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I've been created a grid like screen, building Editable Grid Power Apps .
I've noticed a weird behaviour, where when I reduce the height of the windows the app is displayed in (for instance, from a standard 16/9 to 16/4), the templates seem to have padding in between them:
The normal view:

BrokenClock_2-1659453114551.png

what happens when I reduce the height of the windows (say tile the browser to the bottom/top half of the screen)

BrokenClock_3-1659453264263.png

 




This also happens in a standard gallery I have within the app

BrokenClock_1-1659452775613.png

(Notice below how each item has extra padding on top of it)

BrokenClock_0-1659452743458.png





This behaviour happens whether Grid.TemplateHeight is a fixed value or a calculated value.
All template fields have got their height set to : Height=Grid.TemplateHeight
Grid.TemplatePadding=0

This behaviour makes no sense to me, and I've lost a day banging my head against it.
Is it possible this is an internal inconsistency between using absolute and relative units (px vs percent for example)

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I may have found the issue, and it seems it is a bug with the platform itself (how it's not been caught before, not sure)

    This behaviour of inconsitent template sizes only happens if the screen size changes while the user is on the same screen. Once the screen is reloaded, (navigate in/out of another screen), everything lines up just fine.

    I'm assuming there's two "values" used within Powerapps to define a gallery's template height when displaying in browser, and one of them is fixed while the other one is dynamic,. Different components of the gallery therefore become placed inconsistently.

     

    This even more of an issue on mobile when the orientation of the screen can change on the app, breaking grid display.
    When switching from landscape to portrait on mobile, the grid breaks so hard that the delimiters stop lining up with the items.

     

    I confirmed the issue on firefox and chrome on linux, as well as firefox and the powerapps app on android.


    From source portrait

    BrokenClock_0-1659457086260.png

    To landscape (broken)

    BrokenClock_1-1659457160278.png

    From source landscape

    BrokenClock_2-1659457222303.png

    To portrait (broken)

    BrokenClock_3-1659457259980.png

     

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard