mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-19 01:24:20 +00:00
Windows: Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one).
This commit is contained in:
parent
56f7e853be
commit
f8dc03d702
2 changed files with 2 additions and 1 deletions
|
|
@ -5884,7 +5884,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s
|
|||
if (hovered || held)
|
||||
g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE;
|
||||
|
||||
if (held && g.IO.MouseClickedCount[0] == 2 && resize_grip_n == 0)
|
||||
if (held && g.IO.MouseClickedCount[0] == 2)
|
||||
{
|
||||
// Manual auto-fit when double-clicking
|
||||
size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue