mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Tables: made TableUpdateBorders() use IsVisibleX flag. comments.
This commit is contained in:
parent
1b4323a1b4
commit
2887a6e07d
2 changed files with 4 additions and 5 deletions
|
|
@ -1164,9 +1164,8 @@ void ImGui::TableUpdateBorders(ImGuiTable* table)
|
|||
if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false)
|
||||
continue;
|
||||
|
||||
if (table->FreezeColumnsCount > 0)
|
||||
if (column->MaxX < table->Columns[table->DisplayOrderToIndex[table->FreezeColumnsCount - 1]].MaxX)
|
||||
continue;
|
||||
if (!column->IsVisibleX && table->LastResizedColumn != column_n)
|
||||
continue;
|
||||
|
||||
ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent);
|
||||
ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue