Skip to content

Commit

Permalink
chore: Share SCP MeasureOverride logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Sep 20, 2024
1 parent 8903470 commit 2b79880
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ bool ILayoutConstraints.IsHeightConstrained(View requester)
=> new Rect(default, RenderSize);
#endif

#if UNO_HAS_MANAGED_SCROLL_PRESENTER || __WASM__
protected override Size MeasureOverride(Size availableSize)
{
if (Content is UIElement child)
Expand Down Expand Up @@ -223,9 +222,10 @@ protected override Size MeasureOverride(Size availableSize)
);
}

return new Size(0, 0);
return base.MeasureOverride(availableSize);
}

#if UNO_HAS_MANAGED_SCROLL_PRESENTER || __WASM__
protected override Size ArrangeOverride(Size finalSize)
{
if (Content is UIElement child)
Expand Down

0 comments on commit 2b79880

Please sign in to comment.