mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 01:34:32 +00:00 
			
		
		
		
	Removed extraneous test.
This commit is contained in:
		@@ -4987,7 +4987,7 @@ bool ImGui::Begin(const char* name, bool* p_open, const ImVec2& size_on_first_us
 | 
			
		||||
            IM_ASSERT(window_pos_set_by_api);
 | 
			
		||||
            float horizontal_overlap = style.ItemSpacing.x; // We want some overlap to convey the relative depth of each popup (currently the amount of overlap it is hard-coded to style.ItemSpacing.x, may need to introduce another style value).
 | 
			
		||||
            ImRect rect_to_avoid;
 | 
			
		||||
            if (parent_window && parent_window->DC.MenuBarAppending)
 | 
			
		||||
            if (parent_window->DC.MenuBarAppending)
 | 
			
		||||
                rect_to_avoid = ImRect(-FLT_MAX, parent_window->Pos.y + parent_window->TitleBarHeight(), FLT_MAX, parent_window->Pos.y + parent_window->TitleBarHeight() + parent_window->MenuBarHeight());
 | 
			
		||||
            else
 | 
			
		||||
                rect_to_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user