Skip to content

Commit 9dfc18b

Browse files
committed
Fix compilation error: Change InvalidateMeasure return type from void to bool
The IPlatformMeasureInvalidationController interface requires InvalidateMeasure to return bool, not void. Returns false to stop propagation since we're handling the resize directly by recalculating size and updating the frame.
1 parent 7f68d26 commit 9dfc18b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellFlyoutHeaderContainer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ public override Thickness Margin
3737

3838
void IPlatformMeasureInvalidationController.InvalidateAncestorsMeasuresWhenMovedToWindow() { }
3939

40-
void IPlatformMeasureInvalidationController.InvalidateMeasure(bool isPropagating)
40+
bool IPlatformMeasureInvalidationController.InvalidateMeasure(bool isPropagating)
4141
{
4242
var size = SizeThatFits(new CGSize(Superview.Frame.Width, double.PositiveInfinity));
4343
Frame = new CGRect(Frame.X, Frame.Y, size.Width, size.Height);
44+
return false;
4445
}
4546

4647
public override void LayoutSubviews()

0 commit comments

Comments
 (0)