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 / Slow Responsive Design
Power Apps
Unanswered

Slow Responsive Design

(0) ShareShare
ReportReport
Posted on by

I've created a Canvas app with responsive design using factors of App.Width and App.Height, with "Scale to Fit" turned off. It works beautifully across all platforms—except on iPhones.

The app doesn't fill the screen on iPhones, leaving black bars at the top and bottom. I found that toggling the "Optimized for devices" setting resolves this issue, but it introduces another problem:

With "Optimized for devices" enabled, the app's performance becomes sluggish, especially when rotating the device. The app resizes in real-time, taking several seconds to adjust, and still doesn't fully utilize the available screen space. This significantly affects the overall design and user experience.

For now, I've reverted to disabling "Optimized for devices," but I'm hoping for a better solution.

  • Is there a way to fix the slow response times when "Optimized for devices" is enabled?
  • Alternatively, is there another method to eliminate the black bars on iPhone while maintaining responsive performance?

Thanks in advance for any help!

Categories:
  • SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    Hello,
     
    Keep "Optimized for Devices" Disabled. Use the App.DesignWidth and App.DesignHeight properties to fine-tune the scaling behavior for iPhones.
     
    Calculate aspect ratio and adjust layout accordingly Set(
        ScreenHeightRatio,
        App.Height / App.DesignHeight
    );
    Set(
        ScreenWidthRatio,
        App.Width / App.DesignWidth
    );
     
    Apply these ratios to your elements for scaling: Width: App.Width * ScreenWidthRatio
    Height: App.Height * ScreenHeightRatio
     
    In the app settings, set the Fill Orientation to Portrait or Landscape depending on your app’s primary usage.  Adjust content alignment to center the elements and minimize the impact of black bars.
     
    Adjust Fullscreen 
    Rectangle.Fill = RGBA(255, 255, 255, 1); // White or any preferred color
    Rectangle.Width = App.Width;
    Rectangle.Height = App.Height;
     
    Use a timer to delay layout adjustments: If(
        App.WidthChanged || App.HeightChanged,
        StartTimer(), // Delay logic
        UpdateScreenLayout()
    );
     
    Detect the device type using App.Device. Apply specific scaling or layout logic for iPhone If(
        App.Device = "iPhone",
        Set(ScreenScaleFactor, 1.1), // Adjust for iPhone-specific needs
        Set(ScreenScaleFactor, 1)
    );

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard