Update MacDeviceInfo.cs (#8561) fixes #8559
authorGerald Versluis <gerald.versluis@microsoft.com>
Tue, 19 Nov 2019 11:05:18 +0000 (12:05 +0100)
committerSamantha Houts <samhouts@users.noreply.github.com>
Mon, 2 Dec 2019 22:14:22 +0000 (14:14 -0800)
Xamarin.Forms.Platform.MacOS/MacDeviceInfo.cs

index b0c5596..2f1f91f 100644 (file)
@@ -11,6 +11,7 @@ namespace Xamarin.Forms.Platform.macOS
 
                public MacDeviceInfo()
                {
+                       UpdateScreenSize();
                }
 
                public override Size PixelScreenSize => _pixelScreenSize;
@@ -25,4 +26,4 @@ namespace Xamarin.Forms.Platform.macOS
                        _pixelScreenSize = new Size(_scaledScreenSize.Width * _scalingFactor, _scaledScreenSize.Height * _scalingFactor);
                }
        }
-}
+}
\ No newline at end of file