From 965ab7e4394002b3e9af5b65cae3c08f4364f01a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 30 Sep 2021 11:16:43 +0300 Subject: SidebarWidget: Scroll view to newly added items New bookmarks and folders shouldn't appear outside the visible part of the list. --- src/ui/lookupwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/lookupwidget.c') 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) { item->listItem.isSelected = iTrue; invalidateItem_ListWidget(d->list, d->cursor); } - scrollToItem_ListWidget(d->list, d->cursor); + scrollToItem_ListWidget(d->list, d->cursor, 0); } } -- cgit v1.2.3