Fix incorrect List offset in DropDown

This commit is contained in:
Trevor Slocum 2020-05-09 17:41:43 -07:00
parent ce60530a57
commit d6093272ed
1 changed files with 2 additions and 0 deletions

View File

@ -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 {