summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-12 16:18:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-12 16:19:12 -0300
commit42b2d52c8857fdca52029b66a73be0aa951aafe9 (patch)
treef8dc71c9ca3361a8f45d19bbfebb33895f03a5c8 /scene/gui
parent5f1603ca456dbf7521613a67798153c787149bfe (diff)
Properly adjust the visible editor rect and make limits respected, closes #8328
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/control.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index ae30acf52e..45485b768e 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -1184,6 +1184,7 @@ Size2 Control::get_parent_area_size() const {
parent_size = get_viewport()->get_visible_rect().size;
}
+
return parent_size;
}