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 / Dynamic Gallery Height...
Power Apps
Unanswered

Dynamic Gallery Height to display all items instead of giving a scrollbar

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there a way for the gallery to dynamically display all items instead of the scrollbar? Also, the gallery is inside a container, I would also like to adjust the container related to the dynamic height of the gallery. Is there a way to do this?

 

Again, I am not after the individual  line in the gallery but the total height of all items relative to what data is available.

 

Thanks!

Categories:
I have the same question (0)
  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @Anonymous 

    First, in your gallery TemplateSize property, define a height, example 200

    200

    Then in your gallery Height property, use this code

    Self.TemplateHeight * CountRows(Self.AllItems)

    Then in your container Height property, simply set its height to the height of the gallery

    Gallery.Height

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard