Skip to content

Commit

Permalink
chore: Restore ILayoutOptOut
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Sep 20, 2024
1 parent 8903470 commit 1a3bea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/LayoutHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal static (Size min, Size max) GetMinMax(this IFrameworkElement e)
var isDefaultWidth = double.IsNaN(e.Width);

maxHeight = e.MaxHeight;
minHeight = e.MinHeight;
minHeight = e is ILayoutOptOut { ShouldUseMinSize: false } ? 0 : e.MinHeight;
var userValue = e.Height;

var height = isDefaultHeight ? double.PositiveInfinity : userValue;
Expand All @@ -53,7 +53,7 @@ internal static (Size min, Size max) GetMinMax(this IFrameworkElement e)
minHeight = Math.Max(Math.Min(maxHeight, height), minHeight);

maxWidth = e.MaxWidth;
minWidth = e.MinWidth;
minWidth = e is ILayoutOptOut { ShouldUseMinSize: false } ? 0 : e.MinWidth;
userValue = e.Width;

var width = (isDefaultWidth ? double.PositiveInfinity : userValue);
Expand Down

0 comments on commit 1a3bea9

Please sign in to comment.