mirror of
https://github.com/ocornut/imgui.git
synced 2025-11-13 05:48:42 +00:00
Docking: Honor style.WindowMenuButtonPosition setting in docking node.
This commit is contained in:
@@ -793,7 +793,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_no
|
||||
}
|
||||
else
|
||||
{
|
||||
ImVec2 backup_active_click_offset = g.ActiveIdClickOffset;
|
||||
ImVec2 backup_active_click_offset = g.ActiveIdClickOffset + (pos - window->Pos);
|
||||
StartMouseMovingWindow(window);
|
||||
g.ActiveIdClickOffset = backup_active_click_offset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user