Merge pull request #12903 from YeldhamDev/scrollcontainer_arrangement

Small arrangement in ScrollContainer
This commit is contained in:
Rémi Verschelde 2017-11-13 21:28:32 +01:00 committed by GitHub
commit 3c64635003
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,12 +347,11 @@ void ScrollContainer::update_scrollbars() {
} else {
v_scroll->show();
v_scroll->set_max(min.height);
v_scroll->set_page(size.height - hmin.height);
scroll.y = v_scroll->get_value();
}
v_scroll->set_max(min.height);
v_scroll->set_page(size.height - hmin.height);
if (!scroll_h || min.width <= size.width - vmin.width) {
h_scroll->hide();