Skip to content

Commit

Permalink
[#54504] src: widget: widget_detection.cpp: Include 'options' dropdow…
Browse files Browse the repository at this point in the history
…n in offset

Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Feb 15, 2024
1 parent e56cc36 commit f797ae7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widget/widget_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit f797ae7

Please sign in to comment.