From c9f4e98e2826eb780d708398979e6d71c57b126f Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sun, 1 Jan 2023 15:08:11 +0100 Subject: [PATCH] Adjusting offset in List.SetCurrentItem(), resolves #789 --- list.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/list.go b/list.go index 75e8cd2..d3e0990 100644 --- a/list.go +++ b/list.go @@ -113,6 +113,8 @@ func (l *List) SetCurrentItem(index int) *List { l.currentItem = index + l.adjustOffset() + return l }