mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Nav: moved RenderNavHighlight() calls of TreeNode and Selectable out of if (hovered || selected) tests. Should make no difference as NavId currently returns hovered. (#1861, #4242)
This commit is contained in:
		| @@ -2921,7 +2921,6 @@ void ImGui::TableHeader(const char* label) | ||||
|         const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); | ||||
|         //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); | ||||
|         TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); | ||||
|         RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); | ||||
|     } | ||||
|     else | ||||
|     { | ||||
| @@ -2929,6 +2928,7 @@ void ImGui::TableHeader(const char* label) | ||||
|         if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) | ||||
|             TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); | ||||
|     } | ||||
|     RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); | ||||
|     if (held) | ||||
|         table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; | ||||
|     window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut