Skip to main content

Notifications

Community site session details

Community site session details

Session Id : eY9aqHqcgSTFjZe2YSPWfb
Power Apps - Building Power Apps
Unanswered

Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

Like (0) ShareShare
ReportReport
Posted on 23 Jun 2020 15:31:34 by

Hello,

 

I have created a new app, but I'm facing a weird issue when Scale to Fit is on and Lock Aspect Ration Off, and a Flexible Height Gallery.

 

Situation

When I'm in the designing screen, the app looks amazing and the app is aligned perfectly:

 

Sababneh_0-1592925694988.png

 

And yes I'm using the Flexible Height Gallery 😂, so I can add questions later on by just adding rows to the data source.

Issue:

In mobile app, the Flexible Height Gallery acts weird, as shown below:

 

Sababneh_1-1592926034468.jpeg

See the spaces between each row in the gallery?

 

If I turn it into a normal Gallery (Not flexible height), it works, but I have rows that are different in sizes.

And when I turn On the Lock Aspect Ratio, it works also, but the screen gets eaten by nearly half, and we have many devices that vary in size.

 

Question:

How to make the Flexible Height Gallery work on Scale to Fit without Locking Aspect Ratio?

  • KunalBajaj Profile Picture
    2 on 16 May 2023 at 07:48:22
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    Any update on this? Still UI getting distorted in gallery

     

  • danieller365 Profile Picture
    on 29 Mar 2023 at 08:28:49
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    Hi @Anonymous,

     

    I'm also having the same problem... did you find aworkaround for this one?

  • Community Power Platform Member Profile Picture
    on 03 Jul 2020 at 09:21:33
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    @rohsh354  It is giving me an error while trying to submit a ticket, tried 3 times.

     

    Anyway, I have locked the aspect ratio.

  • Rohit Sharma354 Profile Picture
    on 29 Jun 2020 at 14:22:44
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    @Anonymous 

     

    Thanks for additional information. I would suggest opening a Support Ticket with Microsoft to get this investigated further and confirm if its by design or any other underlying issue.

     

    https://powerapps.microsoft.com/en-us/support/
    https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

     

  • Community Power Platform Member Profile Picture
    on 28 Jun 2020 at 05:07:13
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    Hello @rohsh354 ,

     

    The issue can be reproduced when you put a Flexible Height Gallery with Lock Aspect Ratio off, put some rectangles inside the gallery, then make the gallery rectangles different sizes, for example in row 1, it is 50, in row 2 it is 250, in row 3 it is 80.

     

    You will notice the distortion.

     

    I don't want to keep Lock Aspect Ratio on because the app looks a lot better on mobile when it is full screen. Lock Aspect Ratio makes it smaller.

     

    Thanks

  • Rohit Sharma354 Profile Picture
    on 25 Jun 2020 at 15:35:14
    Re: Problem with Scale to Fit without Lock Aspect Ratio & Gallery Flexible Height

    Hello,

     

    I can reproduce the issue on the mobile app. The width or row spacing changes on mobile app with aspect ratio set to OFF while it shows fine on web browser.

     

    My understanding is that the purpose of "Lock Aspect Ratio" is to prevent distortion in Height and width. If you turn is off, then it can disturb the height/width adjustment. Is there any specific reason why you don't want to turn ON Lock Aspect Ratio?

     

    I don't have a solution, but if you don't hear any other suggestions, I would suggest opening a Support Ticket with Microsoft to get this investigated further.

     

    https://powerapps.microsoft.com/en-us/support/
    https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Hope this helps !

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 58

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 42 Super User 2025 Season 1

Overall leaderboard