Fixed offset adjustment for lists when they are temporarily of height 0, fixes #791

pull/798/head
Oliver 1 year ago
parent 807cb4dd91
commit 892d1a2eb0

@ -559,6 +559,9 @@ func (l *List) Draw(screen tcell.Screen) {
// view.
func (l *List) adjustOffset() {
_, _, _, height := l.GetInnerRect()
if height == 0 {
return
}
if l.currentItem < l.itemOffset {
l.itemOffset = l.currentItem
} else if l.showSecondaryText {

Loading…
Cancel
Save