Notifications
Announcements
HI all,
I have created canvas App and using gallery as tabs , I'm trying to fit the width of the tabs to template.
template width: 1185
Hi @lidor_dayan,
Do you want to make the width of the button within the Gallery fits the screen width?
Could you please share a bit more about your scenario?
Hi @v-qiaqi-msft, yes I want the tabs will cover all the width of the screen, you can see I have a little white space there.
screen width: Max(App.Width, App.MinScreenWidth)
Maybe you could add 50-100 more to the gallery width? and then, adjust the first tab (button width if you use button as the tab) a little bit.
I don't know why but your gallery's width does not seem to be Parent.Width or is not equal to screen width.if it was equal to the screen width then,1. Set gallery's Template Size to = App.Width/(number of Tabs you have) //tried this but it seems there is scrollbar appearing over here when I had 4 tabs.Suppose you have 4 tabs then, Template size = App.Width/4.(Range from 00-25) ie. 4.00,4.01 try and you will get an appropriate result.2. Turn off Scroll feature of gallery.3. This solution seems to be feasible when your number of tabs are Static. If number of tabs are dynamic then you can set the TemplateWidth of the Gallery using Switch case by calculating appropriate width values using step 1 and step 2.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268