Browse Source
Merge branch 'master' into fixes/Warnings_CS0618_Missing
pull/6812/head
Tako
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
5 deletions
-
src/Avalonia.Layout/ElementManager.cs
|
|
|
@ -314,12 +314,11 @@ namespace Avalonia.Layout |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
// Remove clear all realized elements just to align the begavior
|
|
|
|
// with ViewManager which resets realized item indices to defaults.
|
|
|
|
// Freeing only removed items causes wrong indices to be stored
|
|
|
|
// in virtualized info of items under some circumstances.
|
|
|
|
case NotifyCollectionChangedAction.Remove: |
|
|
|
{ |
|
|
|
OnItemsRemoved(args.OldStartingIndex, args.OldItems.Count); |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
case NotifyCollectionChangedAction.Reset: |
|
|
|
ClearRealizedRange(); |
|
|
|
break; |
|
|
|
|