diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-30 01:58:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 01:58:27 +0200 |
commit | 9b8095ad05d41d0bd3aa2afbdd2228b064b49d1b (patch) | |
tree | fa22e99132a324f0d53003d39d9749c8303dd1ab | |
parent | 03788e9f1800ced6e8298be9e0be784fc7e67cc1 (diff) | |
parent | e4f9fa7e53ac683f3f1fe36194cc7cc671d09f62 (diff) |
Merge pull request #50012 from YeldhamDev/script_diag_fix
Make contents of "Create Script" dialog expand with the window size
-rw-r--r-- | editor/script_create_dialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 01743bccab..fdbde8dc5c 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -784,6 +784,7 @@ ScriptCreateDialog::ScriptCreateDialog() { status_panel = memnew(PanelContainer); status_panel->set_h_size_flags(Control::SIZE_FILL); + status_panel->set_v_size_flags(Control::SIZE_EXPAND_FILL); status_panel->add_child(vb); /* Spacing */ @@ -795,10 +796,7 @@ ScriptCreateDialog::ScriptCreateDialog() { vb->add_child(gc); vb->add_child(spacing); vb->add_child(status_panel); - HBoxContainer *hb = memnew(HBoxContainer); - hb->add_child(vb); - - add_child(hb); + add_child(vb); /* Language */ @@ -827,7 +825,7 @@ ScriptCreateDialog::ScriptCreateDialog() { base_type = "Object"; - hb = memnew(HBoxContainer); + HBoxContainer *hb = memnew(HBoxContainer); hb->set_h_size_flags(Control::SIZE_EXPAND_FILL); parent_name = memnew(LineEdit); parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed)); |