Properly adjust the visible editor rect and make limits respected, closes #8328
This commit is contained in:
parent
5f1603ca45
commit
42b2d52c88
@ -272,6 +272,8 @@ void EditorNode::_notification(int p_what) {
|
||||
}
|
||||
editor_selection->update();
|
||||
|
||||
scene_root->set_size_override(true, Size2(GlobalConfig::get_singleton()->get("display/window/width"), GlobalConfig::get_singleton()->get("display/window/height")));
|
||||
|
||||
ResourceImporterTexture::get_singleton()->update_imports();
|
||||
}
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
|
@ -1184,6 +1184,7 @@ Size2 Control::get_parent_area_size() const {
|
||||
|
||||
parent_size = get_viewport()->get_visible_rect().size;
|
||||
}
|
||||
|
||||
return parent_size;
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user