Skip to content

Commit

Permalink
fix(reg): [Android] Fix application content squeezed top left
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 21, 2021
1 parent 9f0b463 commit 595d4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Uno.UI/UI/Xaml/Window.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ internal void RaiseNativeSizeChanged()
var translucentInsets = insets.Minus(opaqueInsets);

// The 'metric.Bounds' does not include any insets, so we remove the "opaque" insets under which we cannot draw anything
var windowBounds = new Rect(default, ((Rect)metrics.Bounds).DeflateBy(opaqueInsets).Size).PhysicalToLogicalPixels();
var windowBounds = new Rect(default, ((Rect)metrics.Bounds).DeflateBy(opaqueInsets).Size);

// The visible bounds is the windows bounds on which we remove also translucentInsets
var visibleBounds = windowBounds.DeflateBy(translucentInsets).PhysicalToLogicalPixels();
var visibleBounds = windowBounds.DeflateBy(translucentInsets);

return (windowBounds, visibleBounds, visibleBounds);
return (windowBounds.PhysicalToLogicalPixels(), visibleBounds.PhysicalToLogicalPixels(), visibleBounds.PhysicalToLogicalPixels());
}
#endif

Expand Down

0 comments on commit 595d4ea

Please sign in to comment.