Browse Source

fix for #8669

pull/8670/head
Andrey Kunchev 4 years ago
parent
commit
d68efa1cd4
  1. 2
      src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

2
src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

@ -187,7 +187,7 @@ namespace Avalonia.Controls.Presenters
break;
case NotifyCollectionChangedAction.Remove:
if ((e.OldStartingIndex >= FirstIndex && e.OldStartingIndex < NextIndex) ||
if (e.OldStartingIndex < NextIndex ||
panel.Children.Count > ItemCount)
{
RecycleContainersOnRemove();

Loading…
Cancel
Save