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 / Weird sizing issues wh...
Power Apps
Answered

Weird sizing issues when publishing/viewing web view

(1) ShareShare
ReportReport
Posted on by 28
Hi,
I have a Canvas app that won't consistently size correctly when opening in the published web version.  I would like it to look like the image below, which is just using the play feature and i have my browser sized to 80% (where I usually have it).  
 
 
Basically it fills up the screen about 85% vertically and 60% horizontally.  
 
However, when I open it using the web link, the browser goes back to 100% (which I believe is correct) and I get a view that is usable, the user has to scroll a bit to see all the details but it still fills up the screen appropriately and it doesn't look weird. 
 
 
The problem is when I open with any other screen (I have two regular 24" screens, I believe) - including presentation, I get a view similar to this (I expanded the browser to 125% to show the difference) and I am concerned that if I am having problems, then those who will be using it will be incredibly confused and not know what to do.  It happens a lot :-)  
 
 
I have done a lot of adjusting with my screen height and width and my containers, for example, my screen h/w are app.height and app.width, my main container that holds everything is Height: Parent.Height-75, Width: 
Min(Parent.Width - 24, 1300), X: (Parent.Width - Self.Width) / 2 and Y: 50
 
I can give more properties if needed, and the tree structure.
 
Can anyone help? I don't know if it is a browser setting or something in PowerApps that I am just missing.  
 
Thank you so much in advance!
 
Lisa
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    1,077 Moderator on at
     
    This is due to Scale to Fit, Lock Aspect Ratio, and container formulas that depend on App.Width and App.Height.
    Canvas apps behave differently depending on:

    1. Whether “Scale to Fit” is ON or OFF
    When ON, the app is rendered in a fixed virtual resolution and then scaled, causing distortions, white bars, stretched layouts, etc.
    When OFF, the app uses true responsive sizing based on the actual browser window.
     
    2. Browser zoom level
    Browser zoom changes the pixel density, affecting container formulas like:
         Width = Min(Parent.Width - 24, 1300)
    So if your 24" monitor has different scaling (125%, 100%) or DPI, your app sees different App.Width and recalculates the layout.
    This explains why your screenshots look “squished” or “expanded”.
     
    3. Containers inside containers + fixed pixel offsets
    Your formula:
         Height: Parent.Height - 75
         Width: Min(Parent.Width - 24, 1300)
         X: (Parent.Width - Self.Width) / 2
         Y: 50
    This works only if your outer container behaves predictably, but with Scale to Fit ON, it doesn't.
     
    What You Should Do
    Step 1: Turn OFF the following app settings
    Go to:
         File → Settings → Display
         Turn OFF:
              Scale to Fit
              Lock aspect ratio
              Lock orientation
    These settings must be off for responsive canvas layout. This single change fixes 80% of all weird scaling issues.
     
    Step 2: Use the Responsive Layout Guidelines
    Microsoft’s modern responsive guidelines (containers + relative formulas) are designed exactly to avoid what you're seeing.
    Use:
              App.Width and App.Height
              Parent.Width and Parent.Height
              Flexible Height containers
              Fill portions instead of fixed pixel values
    Try to avoid fixed pixel offsets unless absolutely needed.

    Step 3: Remove fixed pixel boundaries like “Min(…, 1300)”
    This line:
              Width: Min(Parent.Width - 24, 1300)
    Instead use something like:
              Width: Parent.Width * 0.85
     
    Step 4: Use the Canvas App Monitor (important!)
    Open your app → Monitor.
    You can see the actual App.Width and App.Height values on different screens. This helps verify why your layout shifts.

    For your overall page:
    Outer container (full screen):
              Width: App.Width
              Height: App.Height
    Main container
              Width: App.Width * 0.9
              Height: App.Height * 0.9
              X: (App.Width - Self.Width)/2
              Y: (App.Height - Self.Height)/2
    This creates a stable centered layout that works on all monitors.
     
    Try and let us know how it looks!
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     
     
  • LM-12082027-0 Profile Picture
    28 on at
    Hi! Thank you SO MUCH for these incredible instructions.  I really appreciate the time and care you took to answer this.  thank you so much.
     
    Lisa

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 538 Most Valuable Professional

#2
11manish Profile Picture

11manish 307

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard