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

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (92,181)