mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
(indentation)
This commit is contained in:
@@ -134,11 +134,11 @@ void GalleryList::scrollTo(int top, bool update_scrollbar) {
|
|||||||
|
|
||||||
void GalleryList::updateScrollbar() {
|
void GalleryList::updateScrollbar() {
|
||||||
scrollTo(visible_start, false);
|
scrollTo(visible_start, false);
|
||||||
// how many lines fit on the screen?
|
// how many lines fit on the screen?
|
||||||
int screen_height = mainSize(GetClientSize());
|
int screen_height = mainSize(GetClientSize());
|
||||||
int total_height = itemEnd(itemCount() - 1);
|
int total_height = itemEnd(itemCount() - 1);
|
||||||
// set the scrollbar parameters to reflect this
|
// set the scrollbar parameters to reflect this
|
||||||
SetScrollbar(direction, visible_start, screen_height, total_height);
|
SetScrollbar(direction, visible_start, screen_height, total_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GalleryList::RefreshItem(size_t item) {
|
void GalleryList::RefreshItem(size_t item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user