Skip to content

Commit

Permalink
Remove defunct code from demos
Browse files Browse the repository at this point in the history
  • Loading branch information
hartez committed Jul 14, 2021
1 parent 388793f commit 568fdb6
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/Core/src/Platform/Windows/PagePanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 568fdb6

Please sign in to comment.