From 568fdb6eb81c116e01fe7dfeffc3c0148add6a7c Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Wed, 14 Jul 2021 10:42:51 -0600 Subject: [PATCH] Remove defunct code from demos --- src/Core/src/Platform/Windows/PagePanel.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/Core/src/Platform/Windows/PagePanel.cs b/src/Core/src/Platform/Windows/PagePanel.cs index e19b65d1b8bb..e42f6ad6877f 100644 --- a/src/Core/src/Platform/Windows/PagePanel.cs +++ b/src/Core/src/Platform/Windows/PagePanel.cs @@ -17,22 +17,9 @@ protected override Windows.Foundation.Size MeasureOverride(Windows.Foundation.Si return base.MeasureOverride(availableSize); } - var width = availableSize.Width; - var height = availableSize.Height; + CrossPlatformMeasure(availableSize.Width, availableSize.Height); - if (double.IsInfinity(width)) - { - width = XamlRoot.Size.Width; - } - - if (double.IsInfinity(height)) - { - height = XamlRoot.Size.Height; - } - - CrossPlatformMeasure(width, height); - - return new Windows.Foundation.Size(width, height); + return availableSize; } protected override Windows.Foundation.Size ArrangeOverride(Windows.Foundation.Size finalSize)