Merge pull request #36333 from Calinou/decrease-script-editor-split-width

Decrease the script editor's default split width to 70
This commit is contained in:
Rémi Verschelde 2020-02-27 20:54:23 +01:00 committed by GitHub
commit 38c78a9ab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3149,7 +3149,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
scripts_vbox->add_child(script_list);
script_list->set_custom_minimum_size(Size2(150, 60) * EDSCALE); //need to give a bit of limit to avoid it from disappearing
script_list->set_v_size_flags(SIZE_EXPAND_FILL);
script_split->set_split_offset(140);
script_split->set_split_offset(70 * EDSCALE);
_sort_list_on_update = true;
script_list->connect_compat("gui_input", this, "_script_list_gui_input", varray(), CONNECT_DEFERRED);
script_list->set_allow_rmb_select(true);