diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-26 00:11:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 00:11:46 +0200 |
commit | f577efd47ed2f0aa801155756e4ba5d5ea2d5f2b (patch) | |
tree | 05544efa89a521e0061f9ca82b57ccc69e0f5371 /editor/project_manager.cpp | |
parent | e9e1753c3cf96015893d4d138d6f085995f00035 (diff) | |
parent | 05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 (diff) |
Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 5ab0253d6d..c679b44342 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1434,21 +1434,21 @@ ProjectManager::ProjectManager() { FileDialog::set_default_show_hidden_files(EditorSettings::get_singleton()->get("filesystem/file_dialog/show_hidden_files")); - set_area_as_parent_rect(); + set_anchors_and_margins_preset(Control::PRESET_WIDE); set_theme(create_editor_theme()); gui_base = memnew(Control); add_child(gui_base); - gui_base->set_area_as_parent_rect(); + gui_base->set_anchors_and_margins_preset(Control::PRESET_WIDE); gui_base->set_theme(create_custom_theme()); Panel *panel = memnew(Panel); gui_base->add_child(panel); - panel->set_area_as_parent_rect(); + panel->set_anchors_and_margins_preset(Control::PRESET_WIDE); VBoxContainer *vb = memnew(VBoxContainer); panel->add_child(vb); - vb->set_area_as_parent_rect(20 * EDSCALE); + vb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 20 * EDSCALE); vb->set_margin(MARGIN_TOP, 4 * EDSCALE); vb->set_margin(MARGIN_BOTTOM, -4 * EDSCALE); vb->add_constant_override("separation", 15 * EDSCALE); |