Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Android] Use height when determining ScaledScreenSize; fixes #3609 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hartez authored and rmarinho committed Aug 23, 2018
1 parent 57fd1de commit c0b231b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.Android/Forms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public AndroidDeviceInfo(Context formsActivity)
{
_scalingFactor = display.Density;
_pixelScreenSize = new Size(display.WidthPixels, display.HeightPixels);
ScaledScreenSize = new Size(_pixelScreenSize.Width / _scalingFactor, _pixelScreenSize.Width / _scalingFactor);
ScaledScreenSize = new Size(_pixelScreenSize.Width / _scalingFactor, _pixelScreenSize.Height / _scalingFactor);
}

CheckOrientationChanged(formsActivity.Resources.Configuration.Orientation);
Expand Down

0 comments on commit c0b231b

Please sign in to comment.