Browse Source

Make ItemsRepeater work with no ScrollViewer.

There doesn't seem to be any reason to make `ItemsRepeater` not work properly when there's no `ScrollViewer`.

Fixes #4330
pull/4452/head
Steven Kirk 6 years ago
parent
commit
e74a0d9698
  1. 8
      src/Avalonia.Controls/Repeater/ViewportManager.cs

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

@ -469,13 +469,7 @@ namespace Avalonia.Controls
parent = parent.VisualParent;
}
if (_scroller == null)
{
// We usually update the viewport in the post arrange handler. But, since we don't have
// a scroller, let's do it now.
UpdateViewport(Rect.Empty);
}
else if (!_managingViewportDisabled)
if (!_managingViewportDisabled)
{
_owner.EffectiveViewportChanged += OnEffectiveViewportChanged;
_effectiveViewportChangedSubscribed = true;

Loading…
Cancel
Save