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 Platform Community / Forums / Power Apps / Navigation bar (galler...
Power Apps
Suggested Answer

Navigation bar (gallery with flexible width)

(0) ShareShare
ReportReport
Posted on by 992
Hello everyone ,
 
I want to create a navigation bar using a horizontal gallery with buttons and labels, and I want to know how to make the label’s width change according to the text it contains in order to avoid empty spaces, as shown in the screenshot
 
 
Thank you
 
 
 
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at
    Hi @gikido,
    I am not sure whether you want the Label or the Gallery Tempate size to be flexible here.
     
    For the Label, there is no effective way of doing this precisely - you can set the Width to Len(Self.Text) * Integer (you will need to play with the Integer depending on the font type and size) - note that a W uses a lot more width than an I - but you should at least get a maximum width and get rid of some of the spacing.
     
    If the Gallery, unfortunately, only Flexible Height Galleries are available (not Flexible Width) - so all will be the same size. You may be able to set it to the maximum width you get from the text label.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
     
     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard