Announcements
Hi,
I have multiple galleries on a data card. These galleries can have nothing in them at times. I would like for the galleries below an unpopulated gallery to snap up to the nearest populated gallery. Otherwise there are gaps in the data card (ex. the picture below)
Thanks
@Anonymous
In Gallery height property, you set desired height based on the check.
if(CountRows(gal1.AllItems) = 0, 0,200)
Give a try.
Regards
Krishna Rachakonda
My problem isn't with the Gallery Height (I already have a condition for that that is working fine). I need the Gallery position to be variable
You can (should always) anchor controls to one-another.
You can make Gallery2.Y equal to (Gallery1.Y + Gallery1.Height), for example. This works for most basic anchoring patterns, but can be expanded upon to include more dynamic/responsive formulas, and also should include some padding.
You'll need to consider the context of the control, if you want to use Parent. (for example), because a control may be within a Card container, or a group/container.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout
@GarethPrisk Beautiful, this is exactly what I was looking for. I'll start messing around with it.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 762
11manish 640
Valantis 548