mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Windows: Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one).
This commit is contained in:
		@@ -73,6 +73,7 @@ Other changes:
 | 
				
			|||||||
- Windows:
 | 
					- Windows:
 | 
				
			||||||
  - Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
 | 
					  - 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)
 | 
					    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:
 | 
					- Separators:
 | 
				
			||||||
  - Altered end-points to use more standard boundaries. (#205, #4787, #1643)
 | 
					  - Altered end-points to use more standard boundaries. (#205, #4787, #1643)
 | 
				
			||||||
    Left position is always current cursor X position.
 | 
					    Left position is always current cursor X position.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5884,7 +5884,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s
 | 
				
			|||||||
        if (hovered || held)
 | 
					        if (hovered || held)
 | 
				
			||||||
            g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE;
 | 
					            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
 | 
					            // Manual auto-fit when double-clicking
 | 
				
			||||||
            size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit);
 | 
					            size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user