Merge pull request #23290 from YeldhamDev/fix_default_layout

Fix default layout dock sizes
This commit is contained in:
Rémi Verschelde 2018-10-25 23:19:10 +02:00 committed by GitHub
commit 13582354fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5515,8 +5515,8 @@ EditorNode::EditorNode() {
for (int i = 0; i < vsplits.size(); i++) for (int i = 0; i < vsplits.size(); i++)
default_layout->set_value(docks_section, "dock_split_" + itos(i + 1), 0); default_layout->set_value(docks_section, "dock_split_" + itos(i + 1), 0);
default_layout->set_value(docks_section, "dock_hsplit_1", 0); default_layout->set_value(docks_section, "dock_hsplit_1", 0);
default_layout->set_value(docks_section, "dock_hsplit_2", 40 * EDSCALE); default_layout->set_value(docks_section, "dock_hsplit_2", 100 * EDSCALE);
default_layout->set_value(docks_section, "dock_hsplit_3", -40 * EDSCALE); default_layout->set_value(docks_section, "dock_hsplit_3", -100 * EDSCALE);
default_layout->set_value(docks_section, "dock_hsplit_4", 0); default_layout->set_value(docks_section, "dock_hsplit_4", 0);
_update_layouts_menu(); _update_layouts_menu();