From 91279db308731453057205e6c54366304d67b1bb Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Wed, 11 Sep 2019 18:55:08 +0100 Subject: [PATCH] apply fix to reversible stackpanel. --- src/Avalonia.Controls/Notifications/ReversibleStackPanel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Avalonia.Controls/Notifications/ReversibleStackPanel.cs b/src/Avalonia.Controls/Notifications/ReversibleStackPanel.cs index 768d87c63e..9edf9848fd 100644 --- a/src/Avalonia.Controls/Notifications/ReversibleStackPanel.cs +++ b/src/Avalonia.Controls/Notifications/ReversibleStackPanel.cs @@ -39,6 +39,11 @@ namespace Avalonia.Controls foreach (Control child in children) { + if (!child.IsVisible) + { + continue; + } + double childWidth = child.DesiredSize.Width; double childHeight = child.DesiredSize.Height;