Fixed scrolled widgets not scrolling fully (or at all)

This commit is contained in:
Luke Le Moignan
2022-12-27 13:12:17 +00:00
parent 4c9e6fc735
commit 1444defc03
3 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -73,14 +73,14 @@ void GalleryList::select(size_t item, size_t subcolumn, bool event) {
void GalleryList::update() {
// ensure selection is visible
SubColumn col = subcolumns[active_subcolumn];
/*SubColumn col = subcolumns[active_subcolumn];
if (col.selection != NO_SELECTION) {
if (itemStart(col.selection) < visible_start) {
scrollTo(itemStart(col.selection), false);
} else if (itemEnd(col.selection) > visibleEnd()) {
scrollTo(itemEnd(col.selection) + visible_start - visibleEnd(), false);
}
}
}*/
updateScrollbar();
Refresh(false);
InvalidateBestSize();