summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/control.cpp1
-rw-r--r--scene/main/viewport.cpp1
2 files changed, 2 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;
}
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 763cac2af4..d8ec8b9991 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1156,6 +1156,7 @@ void Viewport::set_size_override(bool p_enable, const Size2 &p_size, const Vecto
size_override_margin = p_margin;
_update_rect();
_update_stretch_transform();
+ emit_signal("size_changed");
}
Size2 Viewport::get_size_override() const {