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 / New modern screen temp...
Power Apps
Answered

New modern screen template Header and Gallery screen Wrap issue

(0) ShareShare
ReportReport
Posted on by 31

I'm experiencing an issue with the new modern screen template rendering correctly.   For testing purposes, I'm just using the OOTB sample.

 

NewScreenSize Apps.png

 

When I run the preview, canvas size works perfectly.  If I change it to window size, all of the gallery items show in a single column.

 

Even after I've published the app and deployed to Teams, I see the same behavior.

 

I would like windows size to render a 3 count wrap like the canvas and keep the padding between.  Unfortunately when I try to set the wrap count to 3 or 4 for Windows size, I lose the padding and the page starts flickering on hover.   I can't seem to locate the property for correcting this.

 

Canvas Size

CanvasPower Apps.png

 

Window Size

 

WindowsPower Apps.png

 

I would like windows size to render 3 count wrap like the canvas.   

 

When I look at the OOTB page I created, the Gallery WrapCount property is set to:

If(Screen1.Size = ScreenSize.ExtraLarge , 3, Screen1.Size = ScreenSize.Large, 2, 1)
 
When checking the ScreenSize property on render, ScreenSize.ExtraLarge has a value of 4.   If I look at the variable in when rendering in Windows size, the actual value is 5.   
 
If I modify the WrapCount formula to account for this, I lose the padding between the tiles and the page flickers.
If(Screen1.Size >= ScreenSize.ExtraLarge , 3, Screen1.Size = ScreenSize.Large, 2, 1)
 
WindowsPowerSize Apps.png
 
I appreciate anyone's help here. 
Categories:
  • Verified answer
    AndrewB Profile Picture
    31 on at

    I think I've found a solution.   

     

    I set the gallery control WrapCount property to:

    If(UserScreen.Size >= ScreenSize.ExtraLarge , 3, UserScreen.Size = ScreenSize.Large, 2, 1)
    Set the child gallery container control Width property to:
    If(UserScreen.Size >= ScreenSize.ExtraLarge, (Parent.Width / 3) - 15, UserScreen.Size = ScreenSize.Large, (Parent.Width / 2) - 15 , Parent.Width)
     
    b Apps.png
     
    The key was to change the if statement logic to >=  to accommodate the UserScreen.Size being returned with a value of 5.   
    That exceeds ScreeSize.ExtraLarge Enum being equal to 4 there by hitting the default value in the if statement.
     
    I now have the correctly formatted gallery in Windows size.
     
    WinSize Apps.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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard