[fix] fix buttons position when control bar in the right

This commit is contained in:
dijunkun
2024-09-12 17:22:13 +08:00
parent be3561d46f
commit 0c688efaee

View File

@@ -9,7 +9,7 @@ int Render::ControlBar() {
if (control_bar_expand_) { if (control_bar_expand_) {
ImGui::SetCursorPosX( ImGui::SetCursorPosX(
is_control_bar_in_left_ ? (control_window_width_ + 5.0f) : 53.0f); is_control_bar_in_left_ ? (control_window_width_ + 5.0f) : 41.0f);
// mouse control button // mouse control button
ImDrawList* draw_list = ImGui::GetWindowDrawList(); ImDrawList* draw_list = ImGui::GetWindowDrawList();