fix: size alloc issue when UpSideDown in iPhone

This commit is contained in:
2020-05-18 09:27:32 +08:00
parent 5380a41b00
commit a13c1deca6
2 changed files with 11 additions and 1 deletions

View File

@ -93,6 +93,10 @@ namespace Pixiview.iOS.Renderers
var landscape =
lastOrientation == UIDeviceOrientation.LandscapeLeft ||
lastOrientation == UIDeviceOrientation.LandscapeRight;
if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
{
landscape |= lastOrientation == UIDeviceOrientation.PortraitUpsideDown;
}
page.OnOrientationChanged(landscape);
}
}