Merge pull request #23735 from pshe94/master

Use VScrollBar when calculating horiz. offset in ScrollContainer
This commit is contained in:
Rémi Verschelde 2018-11-16 15:15:23 +01:00 committed by GitHub
commit 2d7fe9b298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,7 +246,7 @@ void ScrollContainer::_notification(int p_what) {
size.y -= h_scroll->get_minimum_size().y;
if (v_scroll->is_visible_in_tree() && v_scroll->get_parent() == this) //scrolls may have been moved out for reasons
size.x -= h_scroll->get_minimum_size().x;
size.x -= v_scroll->get_minimum_size().x;
for (int i = 0; i < get_child_count(); i++) {