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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flexible template Widt...
Power Apps
Answered

Flexible template Width based on item count

(0) ShareShare
ReportReport
Posted on by 57
I am currently using Reza Dorrani's Kanban board Template where there is a nested gallery. The parent gallery is a collection and the child is a gallery that sorts each item based on the collection value into the correct column. As you can see from my test data there will be significantly more projects in one column than others.
 
Is there a way to create a 'Lite' view where all the items can be seen at once with no scrolling? I would like the coloured columns of the parent gallery to adjust width based on the item count and for the template size of the child gallery to also adjust based on the available space. 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,111 Most Valuable Professional on at
    Without seeing the current code, it is hard to be exact, but you also need to allow for a maximum width of the relevent gallery for the screen width or height.
    As an example of a Vertical Gallery I have which sets its Height dynamically without any Navigation icons until it reaches 20 pixels above the bottom of the screen
    Min(
       Parent.Height - Self.Y - 20,
       Self.AllItemsCount * (Self.TemplateHeight + Self.TemplatePadding) + 5
    )
    
    You can adjust this for Horizontal galleries by using Width and X
     
    Please click 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 giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • WarrenBelz Profile Picture
    155,111 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click 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 giving it a Like.
    MVP (Business Applications)    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 502

#2
Vish WR Profile Picture

Vish WR 454

#3
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

Last 30 days Overall leaderboard