From 69559267749f48578207cde63999467f09e54b0d Mon Sep 17 00:00:00 2001 From: daniel mayost Date: Tue, 22 Mar 2022 22:54:00 +0200 Subject: [PATCH] some fixes --- src/Avalonia.Controls/ComboBox.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Avalonia.Controls/ComboBox.cs b/src/Avalonia.Controls/ComboBox.cs index cc2f79f574..19d3bc9382 100644 --- a/src/Avalonia.Controls/ComboBox.cs +++ b/src/Avalonia.Controls/ComboBox.cs @@ -183,8 +183,7 @@ namespace Avalonia.Controls this.UpdateSelectionBoxItem(SelectedItem); } - // Because the SelectedItem and his children sometimes isn't connected - // to the visual tree and sometimes not to logical tree + // Because the SelectedItem isn't connected to the visual tree public override void InvalidateFlowDirection() { base.InvalidateFlowDirection(); @@ -200,14 +199,6 @@ namespace Avalonia.Controls childControl.InvalidateFlowDirection(); } } - - foreach (var logical in selectedControl.GetLogicalDescendants()) - { - if (logical is Control childControl) - { - childControl.InvalidateFlowDirection(); - } - } } }