diff options
author | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-08-30 22:00:36 +0400 |
---|---|---|
committer | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-08-30 22:00:36 +0400 |
commit | 8ff190b065bbe255349eef4ed708c3b580b24efd (patch) | |
tree | cd105af030b231ff88838e348243e2ff6b284342 /editor/editor_dock_manager.cpp | |
parent | a5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (diff) | |
download | redot-engine-8ff190b065bbe255349eef4ed708c3b580b24efd.tar.gz |
Fix dock width not respecting editor scale
Diffstat (limited to 'editor/editor_dock_manager.cpp')
-rw-r--r-- | editor/editor_dock_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_dock_manager.cpp b/editor/editor_dock_manager.cpp index 75135532aa..0bdda41f26 100644 --- a/editor/editor_dock_manager.cpp +++ b/editor/editor_dock_manager.cpp @@ -509,7 +509,7 @@ void EditorDockManager::save_docks_to_config(Ref<ConfigFile> p_layout, const Str } for (int i = 0; i < hsplits.size(); i++) { - p_layout->set_value(p_section, "dock_hsplit_" + itos(i + 1), hsplits[i]->get_split_offset()); + p_layout->set_value(p_section, "dock_hsplit_" + itos(i + 1), int(hsplits[i]->get_split_offset() / EDSCALE)); } FileSystemDock::get_singleton()->save_layout_to_config(p_layout, p_section); @@ -605,7 +605,7 @@ void EditorDockManager::load_docks_from_config(Ref<ConfigFile> p_layout, const S continue; } int ofs = p_layout->get_value(p_section, "dock_hsplit_" + itos(i + 1)); - hsplits[i]->set_split_offset(ofs); + hsplits[i]->set_split_offset(ofs * EDSCALE); } FileSystemDock::get_singleton()->load_layout_from_config(p_layout, p_section); |