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 horizo...
Power Apps
Unanswered

Flexible height horizontal gallery

(0) ShareShare
ReportReport
Posted on by 109

Hi, 

Assuming the screen initially looks like this - 

MJK_0-1596661136130.png

After I click on "Add Rows" button a row is added in the gallery,  the "Per day total" text boxes and the "Submit Timesheet" & "Add Rows" buttons are re-positioned accordingly.

 

MJK_1-1596661473809.png

 

So on after a couple clicks(Add Rows) the screen should look like this - 

MJK_2-1596661818324.png

 

My Question is- 

How do I create a flexible height horizontal gallery ? And along with it how do I achieve re-positioning controls as the size of the gallery increases?

 Thank you 

Categories:
I have the same question (0)
  • MJK Profile Picture
    109 on at

    @WarrenBelz@jlindstrom@mdevaney@v-xida-msft 

    Looking for some help here. Can Something like this be achieved ?

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @MJK ,

    It is called a Flexible Height gallery as it relates to a Vertical gallery (or is would be a Flexible Width gallery).

    You can of course make a width conditional on other entries with the X property.

    ItemToTheLeft.X + ItemToTheLeft.Width

    and cascade this across.

     

    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.

     

  • Joel CustomerEffective Profile Picture
    3,224 on at

    See https://powerusers.microsoft.com/t5/Building-Power-Apps/dynamically-adding-a-row-to-a-horizontal-gallery/m-p/634364/highlight/true#M201178

     

    Isn’t this the same thing you posted there and have you tried his recommendation? It seems like what you are trying to do

  • MJK Profile Picture
    109 on at

    @jlindstrom 

    No it isn't, and yes I did implement that solution successfully and can add a new row on button click. But if you look at that solution the height of the gallery doesn't change(the yellow part) and the "Add Row" button position is fixed at the bottom. 

     

    My requirement is to increase the height of the gallery as the rows are added and move the "Add Row" button accordingly.(plz refer to the screenshot in my first post)

  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @MJK ,

    I see what you need now - I was focused on your Horizontal gallery question.

    You can conditionally set the Y Property of the buttons - will need a bit of trial and error on the mathematics, but something like

    GalleryName.Y + CountRows(GalleryName.AllItems)*(GalleryName.TemplateHeight + GalleryName.TemplatePadding) + xxx

    where xxx is the space you want below the gallery.

     

    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.

  • MJK Profile Picture
    109 on at

    @WarrenBelz 

    Works perfectly, 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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard