Skip to content

Commit

Permalink
fix(ios_commandbar): Fixed the regression about height of CommandBar …
Browse files Browse the repository at this point in the history
…on iOS

This bug has been introduced by PR #2997
  • Loading branch information
carldebilly committed Oct 14, 2020
1 parent 1ec5db6 commit 0033663
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Uno.UI/UI/Xaml/Controls/AppBar/AppBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,7 @@ protected override Size MeasureOverride(Size availableSize)
// (It's the responsibility of each child to constraint itself)
// Note: This override is used only for the XAML command bar, not the native!
var infinity = new Size(double.PositiveInfinity, double.PositiveInfinity);
var result = base.MeasureOverride(infinity);

var height = ClosedDisplayMode switch
{
AppBarClosedDisplayMode.Compact => _compactHeight,
AppBarClosedDisplayMode.Minimal => _minimalHeight,
_ => 0
};

return new Size(result.Width, height);
return base.MeasureOverride(infinity);
}

bool ICustomClippingElement.AllowClippingToLayoutSlot => false;
Expand Down

0 comments on commit 0033663

Please sign in to comment.