Skip to content

Commit

Permalink
- remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Aug 9, 2024
1 parent 121bba6 commit e5bf25f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Core/src/Platform/iOS/MauiView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,8 @@ public override void LayoutSubviews()
var widthConstraint = bounds.Width;
var heightConstraint = bounds.Height;

// If the SuperView is a MauiView (backing a cross-platform ContentView or Layout), then measurement
// has already happened via SizeThatFits and doesn't need to be repeated in LayoutSubviews. But we
// _do_ need LayoutSubviews to make a measurement pass if the parent is something else (for example,
// the window); there's no guarantee that SizeThatFits has been called in that case.

if (!IsMeasureValid(widthConstraint, heightConstraint) && Superview is not MauiView)

if (!IsMeasureValid(widthConstraint, heightConstraint) /*&& Superview is not MauiView*/)
{
CrossPlatformMeasure(widthConstraint, heightConstraint);
CacheMeasureConstraints(widthConstraint, heightConstraint);
Expand Down

0 comments on commit e5bf25f

Please sign in to comment.