Browse Source
Merge pull request #9910 from SimonCropp/should-GetLayoutVisibleWindowDiscardAnchor-be-used-
should GetLayoutVisibleWindowDiscardAnchor be used?
pull/9949/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
16 deletions
-
src/Avalonia.Controls/Repeater/ViewportManager.cs
|
|
|
@ -124,22 +124,6 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Rect GetLayoutVisibleWindowDiscardAnchor() |
|
|
|
{ |
|
|
|
var visibleWindow = _visibleWindow; |
|
|
|
|
|
|
|
if (HasScroller) |
|
|
|
{ |
|
|
|
visibleWindow = new Rect( |
|
|
|
visibleWindow.X + _layoutExtent.X + _expectedViewportShift.X + _unshiftableShift.X, |
|
|
|
visibleWindow.Y + _layoutExtent.Y + _expectedViewportShift.Y + _unshiftableShift.Y, |
|
|
|
visibleWindow.Width, |
|
|
|
visibleWindow.Height); |
|
|
|
} |
|
|
|
|
|
|
|
return visibleWindow; |
|
|
|
} |
|
|
|
|
|
|
|
public Rect GetLayoutVisibleWindow() |
|
|
|
{ |
|
|
|
|