From f797ae77d65f77413c899aa6df6f651e2603a257 Mon Sep 17 00:00:00 2001 From: Illia Vysochyn Date: Thu, 15 Feb 2024 12:05:52 +0100 Subject: [PATCH] [#54504] src: widget: widget_detection.cpp: Include 'options' dropdown in offset Signed-off-by: Illia Vysochyn --- src/widget/widget_detection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/widget_detection.cpp b/src/widget/widget_detection.cpp index c5f4704..ff59e47 100644 --- a/src/widget/widget_detection.cpp +++ b/src/widget/widget_detection.cpp @@ -30,8 +30,9 @@ void DetectionWidget::imgui_callback() ImVec2 window_pos = ImGui::GetWindowPos(); ImVec2 window_size = ImGui::GetWindowSize(); window_size.x -= style.WindowPadding.x * 2; - window_size.y -= style.WindowPadding.y * 2 + title_bar_size; - ImVec2 offset = ImVec2(window_pos.x + style.WindowPadding.x, window_pos.y + style.WindowPadding.y + title_bar_size); + window_size.y -= style.WindowPadding.y * 2 + title_bar_size * 2; + ImVec2 offset = + ImVec2(window_pos.x + style.WindowPadding.x, window_pos.y + style.WindowPadding.y + title_bar_size * 2); ImDrawList *draw_list = ImGui::GetWindowDrawList();