cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shallu
Frequent Visitor

Spacing Issue between Horizontal gallery control

Hi,

I have used my Gallery Control to show tab like structure. However the issue is the spacing between individual items is variable i.e. the items with less number of characters shows too much of spacing as compared to controls with more number of characters. Hence the UI doesnt look good. Any suggestion.

 
 
2 REPLIES 2
mdevaney
Super User
Super User

@Shallu 

I'll show you a trick I use to adjust individual gallery cell sizes.

 

Put this code in the Items property of the gallery.  You can change the Width to your preferred value.

 

[
{Value: "All", Width: 80},
{Value: "Europe", Width: 120},
{Value: "Growth Markets", Width: 150},
{Value: "North America", Width:  150}
]

 

Then put this code in the TemplateSize property of the gallery.

 

ThisItem.Width

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Shallu
Frequent Visitor

@mdevaney ,

 

Thanks for your response but the ThisItem would not be available at Gallery level . you would not be able to set Templatesize property of your gallery to ThisItem.Width

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,638)