From 776f0a7b894d99d2621b96de62e1f15e17d049a0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Jan 2024 07:28:53 +0100 Subject: a --- editor/imgui-editors.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/imgui-editors.cpp') diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp index 1c15989f..ad71ea0a 100644 --- a/editor/imgui-editors.cpp +++ b/editor/imgui-editors.cpp @@ -263,9 +263,11 @@ void app::draw_editor_pane(float main_menu_height) ImGuiWindowFlags_NoSavedSettings); const auto b = push_id("editor"); + float width = 425 * dpi.x(); + ImGui::SetNextWindowPos({0, main_menu_height+style.WindowPadding.y}); ImGui::SetNextFrameWantCaptureKeyboard(false); - ImGui::SetNextWindowSize({425 * dpi[0], window_size[1]-main_menu_height - style.WindowPadding.y}); + ImGui::SetNextWindowSize({width, window_size.y()-main_menu_height - style.WindowPadding.y}); if (auto b = begin_window({}, nullptr, igwf)) { const auto b2 = push_id("editor-pane"); @@ -281,7 +283,7 @@ void app::draw_editor_pane(float main_menu_height) else if (wa) impl_draw_editor_scenery_pane(*wa, dpi); else if (_editor->mode() == editor_mode::tests) - draw_tests_pane(); + draw_tests_pane(width); } } } -- cgit v1.2.3