mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Use VScrollBar when calculating horiz. offset in ScrollContainer
Someone forgot to change `h_scroll` to `v_scroll` when copy-pasting the code ;)
(cherry picked from commit 554b3f77c7)
This commit is contained in:
@@ -237,7 +237,7 @@ void ScrollContainer::_notification(int p_what) {
|
||||
size.y -= h_scroll->get_minimum_size().y;
|
||||
|
||||
if (v_scroll->is_visible_in_tree())
|
||||
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++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user