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 / Flexible Height for Ga...
Power Apps
Unanswered

Flexible Height for Gallery Based on Row number of items in gallery filter

(0) ShareShare
ReportReport
Posted on by 301

Hi, I have a gallery inside a datacard on a flexible height canvas,

 

I wish for the gallery and datacards Height to be determined by the amount of items within the gallery,

 

For example if the gallery has 4 items therefore each gallery template size is 20 id like the height to be 80

 

It seems straight forward enough however it just doesnt respond to the code inside the Height part of the gallery and datacard? am i doing something wrong?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @ShaneITAutomate ,

    I cannot test this presently, but TemplateHeight could be

    CountRows(YourGalleryName)*20

     

    Please click Accept as solution 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 Thumbs Up.

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @ShaneITAutomate :

    I strongly agree with @WarrenBelz ,but the code should be:

     

    CountRows(YourGalleryName.AllItems)*20

     

    36.gif

    Best Regards,

    Bof

  • javierz Profile Picture
    186 on at

    Thanks

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard