From 4756100cd80741472d1f06d85fec8a619410b4e1 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 29 May 2020 21:09:08 +0200 Subject: [PATCH] Set correct cache length. The default value needs to be the same as the default value in the associated `ItemsRepeater` properties. --- src/Avalonia.Controls/Repeater/ViewportManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Controls/Repeater/ViewportManager.cs b/src/Avalonia.Controls/Repeater/ViewportManager.cs index 10c11889d0..6f0e792aa5 100644 --- a/src/Avalonia.Controls/Repeater/ViewportManager.cs +++ b/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;