web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

gallery tabs width

(0) ShareShare
ReportReport
Posted on by 192

HI all,

I have created canvas App and using gallery as tabs , I'm trying to fit the width of the tabs to template.

lidor_dayan_0-1672061697826.png

 

template width: 1185

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    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?

     

     

  • lidor_dayan Profile Picture
    192 on at

    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)

     

  • NurSabrina24 Profile Picture
    165 on at

    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. 

  • Verified answer
    VishalJhaveri Profile Picture
    1,167 Moderator on at

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard