Tables: Angled Headers: angled section for column being reordered via the regular headers stay highlighted during reordering.

Easily possible thanks to 6603cde.
This commit is contained in:
ocornut
2026-04-01 20:05:17 +02:00
parent 6603cdef98
commit 07acc8bc87
2 changed files with 3 additions and 1 deletions

View File

@@ -3308,7 +3308,7 @@ void ImGui::TableAngledHeadersRow()
// Which column needs highlight?
const ImGuiID row_id = GetID("##AngledHeaders");
ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent);
int highlight_column_n = table->HighlightColumnHeader;
int highlight_column_n = (table->LastHeldHeaderColumn != -1) ? table->LastHeldHeaderColumn : table->HighlightColumnHeader;
if (highlight_column_n == -1 && table->HoveredColumnBody != -1)
if (table_instance->HoveredRowLast == 0 && table->HoveredColumnBorder == -1 && (g.ActiveId == 0 || g.ActiveId == row_id || (table->IsActiveIdInTable || g.DragDropActive)))
highlight_column_n = table->HoveredColumnBody;