Skip to content

Commit

Permalink
chore: add issue mention
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamatt committed Dec 5, 2024
1 parent 27f03f3 commit 16ca3fb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ internal void ScrollItemIntoView(int index, ScrollIntoViewAlignment alignment, d
// So here we prepare the _effectiveViewport (which will most probably be re-updated by the ChangeView below),
// and then force a base_Measure()

#if HAS_UNO
// Scrolling to the MaxDate and switching between Decade/Year/Month views keeps increasing the _effectiveViewport.Y
// even though there's no more items to show after MaxDate, causing empty rows in the viewport
if (newOffset >= sv.ScrollableHeight)
{
_effectiveViewport.Y = currentOffset;
Expand All @@ -441,6 +444,9 @@ internal void ScrollItemIntoView(int index, ScrollIntoViewAlignment alignment, d
{
_effectiveViewport.Y += newOffset - currentOffset;
}
#else
_effectiveViewport.Y += newOffset - currentOffset;
#endif

sv.ChangeView(
horizontalOffset: null,
Expand Down

0 comments on commit 16ca3fb

Please sign in to comment.