Handle infinite width for triggers
MODIFY
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
@@ -169,6 +169,14 @@ namespace WalletWasabi.Fluent.Controls
var totalColumns = 1;
var layoutIndex = 0;
+ if (double.IsInfinity(width))
+ {
+ var i = columnHints.Count - 1;
+ totalColumns = columnHints[i];
+ layoutIndex = i;
+ }
+ else
+ {
for (var i = 0; i < widthTriggers.Count; i++)
{
if (width > widthTriggers[i])
@@ -177,6 +185,7 @@ namespace WalletWasabi.Fluent.Controls
layoutIndex = i;
}
}
+ }
var currentColumn = 0;
var totalRows = 0;

Handle infinite width for triggers