mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Demo: Console: Fixed incorrect positioning which was hidden by a minor scroll issue (this would affect people who copied the console code as is)
This commit is contained in:
		@@ -2480,7 +2480,7 @@ struct ExampleAppConsole
 | 
			
		||||
        ImGui::PopStyleVar();
 | 
			
		||||
        ImGui::Separator();
 | 
			
		||||
 | 
			
		||||
        ImGui::BeginChild("ScrollingRegion", ImVec2(0,-ImGui::GetItemsLineHeightWithSpacing()), false, ImGuiWindowFlags_HorizontalScrollbar);
 | 
			
		||||
        ImGui::BeginChild("ScrollingRegion", ImVec2(0, -ImGui::GetStyle().ItemSpacing.y - ImGui::GetItemsLineHeightWithSpacing()), false, ImGuiWindowFlags_HorizontalScrollbar); // Leave room for 1 separator + 1 InputText
 | 
			
		||||
        if (ImGui::BeginPopupContextWindow())
 | 
			
		||||
        {
 | 
			
		||||
            if (ImGui::Selectable("Clear")) ClearLog();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user