Browse Source

Merge pull request #2511 from jp2masa/stackpanel-fixes

Fixed stack panel children spacing
pull/2499/head
Steven Kirk 7 years ago
committed by GitHub
parent
commit
dc18ee3cbc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Avalonia.Controls/StackPanel.cs

5
src/Avalonia.Controls/StackPanel.cs

@ -233,6 +233,11 @@ namespace Avalonia.Controls
foreach (Control child in Children) foreach (Control child in Children)
{ {
if (!child.IsVisible)
{
continue;
}
double childWidth = child.DesiredSize.Width; double childWidth = child.DesiredSize.Width;
double childHeight = child.DesiredSize.Height; double childHeight = child.DesiredSize.Height;

Loading…
Cancel
Save