diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-30 11:16:43 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-30 11:16:43 +0300 |
commit | 965ab7e4394002b3e9af5b65cae3c08f4364f01a (patch) | |
tree | 9fbd736b6163c21f71b5e8579cafef712f4f0deb /src/ui/lookupwidget.c | |
parent | 9978d46dfe90f7701b90652a7f8500cdd46eaf31 (diff) |
SidebarWidget: Scroll view to newly added items
New bookmarks and folders shouldn't appear outside the visible part of the list.
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r-- | src/ui/lookupwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index ab649eee..e57a5fdc 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c | |||
@@ -624,7 +624,7 @@ static void setCursor_LookupWidget_(iLookupWidget *d, size_t index) { | |||
624 | item->listItem.isSelected = iTrue; | 624 | item->listItem.isSelected = iTrue; |
625 | invalidateItem_ListWidget(d->list, d->cursor); | 625 | invalidateItem_ListWidget(d->list, d->cursor); |
626 | } | 626 | } |
627 | scrollToItem_ListWidget(d->list, d->cursor); | 627 | scrollToItem_ListWidget(d->list, d->cursor, 0); |
628 | } | 628 | } |
629 | } | 629 | } |
630 | 630 | ||