Browse Source

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

donandren 9 years ago
parent
commit
ba8829399d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

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