From 471298f8ed38b67404fc4191aafd3b05bd156447 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Mon, 18 Sep 2023 22:42:59 -0400 Subject: [PATCH] fix(listview): Adjust scrollbar height to avoid duplicating the header size --- .../Controls/ListViewBase/VirtualizingPanelLayout.Android.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/VirtualizingPanelLayout.Android.cs b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/VirtualizingPanelLayout.Android.cs index f54dd8d27e87..5c7fb5025809 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/VirtualizingPanelLayout.Android.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/VirtualizingPanelLayout.Android.cs @@ -753,7 +753,7 @@ private int ComputeScrollRange(RecyclerView.State state, Orientation orientation CorrectForEstimationErrors(); - var range = ContentOffset + remainingItemExtent + remainingGroupExtent + headerExtent + footerExtent + + var range = ContentOffset + remainingItemExtent + remainingGroupExtent + footerExtent + //TODO: An inline group header might actually be the view at the bottom of the viewport, we should take this into account GetChildEndWithMargin(base.GetChildAt(FirstItemView + ItemViewCount - 1)); Debug.Assert(range > 0, "Must report a non-negative scroll range.");