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 doesn't spread...
Power Apps
Unanswered

Gallery doesn't spread across

(0) ShareShare
ReportReport
Posted on by 296

I really like how Reza does the tabs in this video. I'm trying to recreate it but my gallery is piled on top of each other and doesn't spread across the gallery. 

Amapola188_0-1631664293756.png

 

Changing Align in Container to Stretch gives me below. I have exactly copied the settings as in the video but while changing the TemplateSize to Parent.Height in Reza's video constrains the gallery to the height of the container, mine still goes well beyond, see screenshot below. - Considering height is set to 100, that's not right but there you go, that's what it is.

 

Amapola188_1-1632873715063.png

 

The video is only a few month old. I really wonder why it works in his demonstration and not for me. Some of his settings did not match my default settings and I have adjusted those. I've gone through all the Advanced settings but I can't see anything that might make a difference.

 

I don't have a lot of experience with PowerApps but considering it's a horizontal gallery but is piling on the left, this just seems odd. Any ideas would be much appreciated! 

Thank you!

 

Categories:
  • jkb6011 Profile Picture
    122 on at

    Hey there, I'm having the exact same issue. Were you able to find a resolutions for this?

     

    I've watched and re-watched Reza's video. Not sure if it's something I'm doing incorrectly, or if something in the PowerApps environment has changed since that video was published?

     

    Thanks for the great question!

    Ken B

     

     

  • Amapola188 Profile Picture
    296 on at

    Hi Ken @jkb6011 

     

    I got it working. I think what I did was download Reza's App and then copy the properties one for one so I will put them here. There wasn't something obvious I noticed ...

     

    Gallery properties:

    AlignInContainer: SetByContainer

    Default: {ID:2} 

    FillPortions: 1

    Height: Parent.Height (Gallery sits in its own container, also see screen shots of settings in panel below)

    Items: collection

    LayoutMinHeight: 100

    LayoutMinWidth: Parent.Width

    OnSelect: Set(varTabSelected,ThisItem.ID)

    TemplatePadding: 2

    TemplateSize: Parent.Width/CountRows(Self.AllItems)

    Width: Parent.Width

    WrapCount: 1 (I know, search me!)

     

    Amapola188_0-1637690208447.png

     

    I will also put Container properties in another post.

     

    Good luck, Christine

     

     

  • jkb6011 Profile Picture
    122 on at

    Thanks for the help Christine! @Amapola188 

     

    I think I figured out what our problem was. Reza selected a horizontal gallery for the tabs gallery. When I did that, I had the same issue as you. But when I tried a blank vertical gallery, and set my WrapCount property to the colTabs collection, it worked exactly like his.

     

    Must have been lost in editing! lol

     

  • Amapola188 Profile Picture
    296 on at

    @jkb6011 

     

    Container properties:

     

    AlignInContainer: SetByContainer

    FillPortions: 0

    Height: 100

    LayoutAlignItems: Stretch

    LayoutDirection: Horizontal

    LayoutGap: 0

    LayoutJustifyContent: Start

    LayoutMinHeight: 100

    LayoutMinWidth: Parent.Width

    LayoutOverflowX: Scroll

    LayoutOverflowY: Scroll

    LayoutWrap: true

    PaddingBottom: 5

    PaddingLeft: 0

    PaddingRight: 0

    PaddingTop: 0

    Width: Parent.Width

     

    Amapola188_1-1637690737323.png

     

  • Amapola188 Profile Picture
    296 on at

    @jkb6011 

     

    Excellent. There's probably more than one way to skin a cat! - And with the constant changes, there may be a better way coming along all the time!

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard