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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/Avalonia.Controls/StackPanel.cs
|
|
|
@ -233,6 +233,11 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
foreach (Control child in Children) |
|
|
|
{ |
|
|
|
if (!child.IsVisible) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
double childWidth = child.DesiredSize.Width; |
|
|
|
double childHeight = child.DesiredSize.Height; |
|
|
|
|
|
|
|
|