Browse Source

Set default cache size to 0.

Scrolling on UWP happens asynchronous to the UI thread, so `ItemsRepeater` on that platform generate an additional buffer of prepared elements sufficient to fill an area larger than the viewport. We don't have async scroll rendering on Avalonia so make the default cache size 0.
pull/2603/head
Steven Kirk 7 years ago
parent
commit
66e0146898
  1. 4
      src/Avalonia.Controls/Repeater/ViewportManager.cs

4
src/Avalonia.Controls/Repeater/ViewportManager.cs

@ -35,8 +35,8 @@ namespace Avalonia.Controls
// actually happened. This can happen in cases where no scrollviewer
// in the parent chain can scroll in the shift direction.
private Point _unshiftableShift;
private double _maximumHorizontalCacheLength = 2.0;
private double _maximumVerticalCacheLength = 2.0;
private double _maximumHorizontalCacheLength = 0.0;
private double _maximumVerticalCacheLength = 0.0;
private double _horizontalCacheBufferPerSide;
private double _verticalCacheBufferPerSide;
private bool _isBringIntoViewInProgress;

Loading…
Cancel
Save