diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-19 12:06:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-19 12:06:00 +0200 |
| commit | 7fd29b5464350f13df32084fd1c367a9b946cf8e (patch) | |
| tree | cb79c4fdba865acaccf86b7120f65cbc52ed06a4 /editor/plugins/script_text_editor.cpp | |
| parent | 035d91ed73ce5d1cea1b24c7899875188565f6c0 (diff) | |
| parent | 97dfbea6adc5cc2e2df4b26a34dfb0275991e335 (diff) | |
| download | redot-engine-7fd29b5464350f13df32084fd1c367a9b946cf8e.tar.gz | |
Merge pull request #59301 from fire-forge/layout-preset-full-rect
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
| -rw-r--r-- | editor/plugins/script_text_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 66cd85a26a..3ba8343268 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1821,7 +1821,7 @@ void ScriptTextEditor::_enable_code_editor() { VSplitContainer *editor_box = memnew(VSplitContainer); add_child(editor_box); - editor_box->set_anchors_and_offsets_preset(Control::PRESET_WIDE); + editor_box->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT); editor_box->set_v_size_flags(SIZE_EXPAND_FILL); editor_box->add_child(code_editor); @@ -1958,7 +1958,7 @@ void ScriptTextEditor::_enable_code_editor() { ScriptTextEditor::ScriptTextEditor() { code_editor = memnew(CodeTextEditor); code_editor->add_theme_constant_override("separation", 2); - code_editor->set_anchors_and_offsets_preset(Control::PRESET_WIDE); + code_editor->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT); code_editor->set_code_complete_func(_code_complete_scripts, this); code_editor->set_v_size_flags(SIZE_EXPAND_FILL); |
