mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Internals: Windows hidden with HiddenFramesRegular (but NOT HiddenFramesForResize) preserve their SizeContents, so restoring a auto-resize window after it's been hidden by tabs won't reset its size for a frame. Arguable. Let's see how it goes. (Followup to b48e295bddbf965d7382ec5578ed05d2fe601114)
This commit is contained in:
		| @@ -4334,6 +4334,8 @@ static ImVec2 CalcSizeContents(ImGuiWindow* window) | ||||
| { | ||||
|     if (window->Collapsed) | ||||
|         return window->SizeContents; | ||||
|     if (window->Hidden && window->HiddenFramesForResize == 0 && window->HiddenFramesRegular > 0) | ||||
|         return window->SizeContents; | ||||
|  | ||||
|     ImVec2 sz; | ||||
|     sz.x = (float)(int)((window->SizeContentsExplicit.x != 0.0f) ? window->SizeContentsExplicit.x : (window->DC.CursorMaxPos.x - window->Pos.x + window->Scroll.x)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user