mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Tables: Fixed TableHeader() not declaring its height properly. Do NOT declare width.
This commit is contained in:
		| @@ -2133,6 +2133,7 @@ void    ImGui::TableHeader(const char* label) | |||||||
|     const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); |     const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); | ||||||
|     ImGuiID id = window->GetID(label); |     ImGuiID id = window->GetID(label); | ||||||
|     ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); |     ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); | ||||||
|  |     ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal | ||||||
|     if (!ItemAdd(bb, id)) |     if (!ItemAdd(bb, id)) | ||||||
|         return; |         return; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 omar
					omar