Browse Source

Set correct cache length.

The default value needs to be the same as the default value in the associated `ItemsRepeater` properties.
pull/4091/head
Steven Kirk 6 years ago
parent
commit
4756100cd8
  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 = 0.0;
private double _maximumVerticalCacheLength = 0.0;
private double _maximumHorizontalCacheLength = 2.0;
private double _maximumVerticalCacheLength = 2.0;
private double _horizontalCacheBufferPerSide;
private double _verticalCacheBufferPerSide;
private bool _isBringIntoViewInProgress;

Loading…
Cancel
Save