From 24d289ad304ca8691e9ea6ad63791aa658eea776 Mon Sep 17 00:00:00 2001 From: TheXamlGuy Date: Wed, 8 May 2024 22:03:53 +0100 Subject: [PATCH] qip --- .../ResponsiveGrid/ResponsiveGrid.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Toolkit.UI.Controls.Avalonia/ResponsiveGrid/ResponsiveGrid.cs b/Toolkit.UI.Controls.Avalonia/ResponsiveGrid/ResponsiveGrid.cs index cbe92ea..556a8de 100644 --- a/Toolkit.UI.Controls.Avalonia/ResponsiveGrid/ResponsiveGrid.cs +++ b/Toolkit.UI.Controls.Avalonia/ResponsiveGrid/ResponsiveGrid.cs @@ -248,7 +248,8 @@ namespace Toolkit.UI.Controls.Avalonia int GetMD() => Math.Max(GetSM(), GetMediumOffset(control)); int GetLG() => Math.Max(GetMD(), GetLargeOffset(control)); - int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); + int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? + GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); return Math.Min(span, MaxDivision); } @@ -259,7 +260,8 @@ namespace Toolkit.UI.Controls.Avalonia int GetMD() => Math.Max(GetSM(), GetMediumPull(control)); int GetLG() => Math.Max(GetMD(), GetLargePull(control)); - int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); + int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? + GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); return Math.Min(span, MaxDivision); } @@ -270,7 +272,8 @@ namespace Toolkit.UI.Controls.Avalonia int GetMD() => Math.Max(GetSM(), GetMediumPush(control)); int GetLG() => Math.Max(GetMD(), GetLargePush(control)); - int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); + int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? + GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); return Math.Min(span, MaxDivision); } @@ -281,7 +284,8 @@ namespace Toolkit.UI.Controls.Avalonia int GetMD() => Math.Max(GetSM(), GetMedium(control)); int GetLG() => Math.Max(GetMD(), GetLarge(control)); - int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); + int span = width < Thresholds.ExtraSmallToSmall ? GetXS() : width < Thresholds.SmallToMedium ? + GetSM() : width < Thresholds.MediumToLarge ? GetMD() : GetLG(); return Math.Min(span, MaxDivision); }