Browse Source

Pass initial size for list.

pull/3636/head
Steven Kirk 6 years ago
parent
commit
aea4bce0dd
  1. 2
      src/Avalonia.Styling/Styling/StyleInstance.cs

2
src/Avalonia.Styling/Styling/StyleInstance.cs

@ -46,7 +46,7 @@ namespace Avalonia.Styling
{
var animationsCount = animations.Count;
_animations = new List<IDisposable>();
_animations = new List<IDisposable>(animationsCount);
_animationTrigger = new Subject<bool>();
for (var i = 0; i < animationsCount; ++i)

Loading…
Cancel
Save