From b6405a291d361d9b12ffb674970cc10c7ddbb077 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 28 Jul 2020 15:27:22 +0200 Subject: [PATCH] Tables: Fixed TableHeader() not declaring its height properly. Do NOT declare width. --- imgui_tables.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_tables.cpp b/imgui_tables.cpp index 22acdf26..cb7a1b34 100644 --- a/imgui_tables.cpp +++ b/imgui_tables.cpp @@ -2133,6 +2133,7 @@ void ImGui::TableHeader(const char* label) const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); 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)); + ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal if (!ItemAdd(bb, id)) return;