mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02: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