@ -5755,7 +5755,7 @@ static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_cont 
			
		
	
		
		
			
				
					
					    {      {   
			
		
	
		
		
			
				
					
					        // Maximum window size is determined by the viewport size or monitor size
          // Maximum window size is determined by the viewport size or monitor size
   
			
		
	
		
		
			
				
					
					        ImVec2  size_min  =  CalcWindowMinSize ( window ) ;          ImVec2  size_min  =  CalcWindowMinSize ( window ) ;   
			
		
	
		
		
			
				
					
					        ImVec2  size_max  =  ( window - > Flags  &  ImGuiWindowFlags_ChildWindow )  ?  ImVec2 ( FLT_MAX ,  FLT_MAX )  :  ImGui : : GetMainViewport ( ) - > WorkSize  -  style . DisplaySafeAreaPadding  *  2.0f ;          ImVec2  size_max  =  ( ( window - > Flags  &  ImGuiWindowFlags_ChildWindow )  & &  ! ( window - > Flags  &  ImGuiWindowFlags_Popup ) )  ?  ImVec2 ( FLT_MAX ,  FLT_MAX )  :  ImGui : : GetMainViewport ( ) - > WorkSize  -  style . DisplaySafeAreaPadding  *  2.0f ;   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					        ImVec2  size_auto_fit  =  ImClamp ( size_desired ,  size_min ,  size_max ) ;          ImVec2  size_auto_fit  =  ImClamp ( size_desired ,  size_min ,  size_max ) ;   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					        // When the window cannot fit all contents (either because of constraints, either because screen is too small),
          // When the window cannot fit all contents (either because of constraints, either because screen is too small),