Skip to content

Commit f8dc03d

Browse files
committed
Windows: Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one).
1 parent 56f7e85 commit f8dc03d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Other changes:
7373
- Windows:
7474
- Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
7575
to false when popup is closed in ways other than clicking the close button. (#6900)
76+
- Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one).
7677
- Separators:
7778
- Altered end-points to use more standard boundaries. (#205, #4787, #1643)
7879
Left position is always current cursor X position.

imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5884,7 +5884,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s
58845884
if (hovered || held)
58855885
g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE;
58865886

5887-
if (held && g.IO.MouseClickedCount[0] == 2 && resize_grip_n == 0)
5887+
if (held && g.IO.MouseClickedCount[0] == 2)
58885888
{
58895889
// Manual auto-fit when double-clicking
58905890
size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit);

0 commit comments

Comments
 (0)