cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

@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."

@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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (36,404)