Browse Source

Dematerialize correct items.

Steven Kirk 9 years ago
parent
commit
be78eb2ed1
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

@@ -135,7 +135,7 @@ namespace Avalonia.Controls.Presenters
                 var index = panel.Children.Count - count;
 
                 panel.Children.RemoveRange(index, count);
-                generator.Dematerialize(index, count);
+                generator.Dematerialize(FirstIndex + index, count);
 
                 LastIndex -= count;
             }