Added UpdateScreenSize call at instantiation (#6912)
authorGerald Versluis <gerald.versluis@microsoft.com>
Thu, 25 Jul 2019 20:24:31 +0000 (22:24 +0200)
committerE.Z. Hart <hartez@users.noreply.github.com>
Thu, 25 Jul 2019 20:24:31 +0000 (14:24 -0600)
Xamarin.Forms.Platform.iOS/IOSDeviceInfo.cs

index 5cb0cb2..4187d68 100644 (file)
@@ -17,6 +17,8 @@ namespace Xamarin.Forms.Platform.iOS
                public IOSDeviceInfo()
                {
                        _notification = UIDevice.Notifications.ObserveOrientationDidChange(OrientationChanged);
+
+                       UpdateScreenSize();
                }
 
                public override Size PixelScreenSize => _pixelScreenSize;