Browse Source

Fix VirtualizingPanel's RemoveInternalChildRange() removing elements from 0 (#12476) (#12877)

pull/12940/head
NLNet 2 years ago
committed by GitHub
parent
commit
df0342f17e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/VirtualizingPanel.cs

2
src/Avalonia.Controls/VirtualizingPanel.cs

@ -183,7 +183,7 @@ namespace Avalonia.Controls
{
var itemsControl = EnsureItemsControl();
for (var i = 0; i < count; ++i)
for (var i = index; i < count; ++i)
{
var c = Children[i];
itemsControl.RemoveLogicalChild(c);

Loading…
Cancel
Save