diff --git a/list.go b/list.go index 8e63d56..4962bf6 100644 --- a/list.go +++ b/list.go @@ -649,6 +649,8 @@ func (l *List) transform(tr Transformation) { } func (l *List) updateOffset() { + _, _, _, l.height = l.GetInnerRect() + if l.currentItem < l.offset { l.offset = l.currentItem } else if l.showSecondaryText {