Browse Source

fixed problem when Removing range items from virtualized ItemsPresenter related to #651

pull/652/head
donandren 10 years ago
parent
commit
ba8829399d
  1. 2
      src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

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

@ -125,7 +125,7 @@ namespace Avalonia.Controls.Presenters
case NotifyCollectionChangedAction.Remove:
if (e.OldStartingIndex >= FirstIndex &&
e.OldStartingIndex + e.OldItems.Count <= NextIndex)
e.OldStartingIndex < NextIndex)
{
RecycleContainersOnRemove();
}

Loading…
Cancel
Save