1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-16 00:54:19 +00:00

Docking: Honor style.WindowMenuButtonPosition setting in docking node.

This commit is contained in:
omar 2019-05-24 21:59:00 +02:00
parent afad952450
commit e5dfa0855f
2 changed files with 34 additions and 14 deletions

View file

@ -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;
}