Commit ff780817 authored by twanvl's avatar twanvl

always update the scrollbar when update()ing a GalleryList, otherwise the...

always update the scrollbar when update()ing a GalleryList, otherwise the scrollbar is not set correctly on the new set window.
parent 6ea72fdd
...@@ -77,12 +77,11 @@ void GalleryList::update() { ...@@ -77,12 +77,11 @@ void GalleryList::update() {
if (col.selection != NO_SELECTION) { if (col.selection != NO_SELECTION) {
if (itemStart(col.selection) < visible_start) { if (itemStart(col.selection) < visible_start) {
scrollTo(itemStart(col.selection), false); scrollTo(itemStart(col.selection), false);
updateScrollbar();
} else if (itemEnd(col.selection) > visibleEnd()) { } else if (itemEnd(col.selection) > visibleEnd()) {
scrollTo(itemEnd(col.selection) + visible_start - visibleEnd(), false); scrollTo(itemEnd(col.selection) + visible_start - visibleEnd(), false);
updateScrollbar();
} }
} }
updateScrollbar();
Refresh(false); Refresh(false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment