Browse Source

some fixes

pull/7810/head
daniel mayost 5 years ago
parent
commit
6955926774
  1. 11
      src/Avalonia.Controls/ComboBox.cs

11
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();
}
}
}
}

Loading…
Cancel
Save