Skip to content

Commit

Permalink
Windows: Can also auto-resize by double-clicking lower-left resize gr…
Browse files Browse the repository at this point in the history
…ip (not only lower-right one).
  • Loading branch information
ocornut committed Oct 18, 2023
1 parent 56f7e85 commit f8dc03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Other changes:
- Windows:
- Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
to false when popup is closed in ways other than clicking the close button. (#6900)
- Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one).
- Separators:
- Altered end-points to use more standard boundaries. (#205, #4787, #1643)
Left position is always current cursor X position.
Expand Down
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8dc03d

Please sign in to comment.