diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-24 12:01:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 12:01:00 +0200 |
commit | 16f532a2023c99f61aa13a5861d5dba5eebaa91f (patch) | |
tree | b99c92d96d99b7767d24469346757feb6f42681f | |
parent | bd885ed7047dff641b96f5cf026d6ceb2a5a8ba8 (diff) | |
parent | d4082a8d92240ab3403ac93da423e613154fc889 (diff) | |
download | redot-engine-16f532a2023c99f61aa13a5861d5dba5eebaa91f.tar.gz |
Merge pull request #8499 from Melix19/patch-3
Fix "Save/Delete Layout" text field goes outside of the popup
-rw-r--r-- | editor/editor_name_dialog.cpp | 6 | ||||
-rw-r--r-- | editor/editor_name_dialog.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/editor/editor_name_dialog.cpp b/editor/editor_name_dialog.cpp index 972857fd88..29d5dda658 100644 --- a/editor/editor_name_dialog.cpp +++ b/editor/editor_name_dialog.cpp @@ -79,9 +79,11 @@ void EditorNameDialog::_bind_methods() { } EditorNameDialog::EditorNameDialog() { + makevb = memnew(VBoxContainer); + add_child(makevb); name = memnew(LineEdit); - add_child(name); - move_child(name, get_label()->get_index() + 1); + makevb->add_child(name); + makevb->move_child(name, get_label()->get_index() + 1); name->set_margin(MARGIN_TOP, 5); name->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5); name->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5); diff --git a/editor/editor_name_dialog.h b/editor/editor_name_dialog.h index a98db4ffe6..eeeee34d7e 100644 --- a/editor/editor_name_dialog.h +++ b/editor/editor_name_dialog.h @@ -38,6 +38,7 @@ class EditorNameDialog : public ConfirmationDialog { GDCLASS(EditorNameDialog, ConfirmationDialog); + VBoxContainer *makevb; LineEdit *name; void _line_gui_input(const InputEvent &p_event); |