Browse Source

[StackPanel] Gap value is not added to the measured width or height after the last child.

pull/1186/head
Dan Walmsley 9 years ago
parent
commit
eb5a354d62
  1. 9
      src/Avalonia.Controls/StackPanel.cs

9
src/Avalonia.Controls/StackPanel.cs

@ -170,6 +170,15 @@ namespace Avalonia.Controls
}
}
if (Orientation == Orientation.Vertical)
{
measuredHeight -= gap;
}
else
{
measuredWidth -= gap;
}
return new Size(measuredWidth, measuredHeight);
}

Loading…
Cancel
Save