Tables: fixed Y position of lower horizontal border being off by one pixel when vertical ones are not also enabled.

Attributed to thedmd who reported this to me.
This commit is contained in:
thedmd
2026-07-30 21:40:05 +02:00
committed by ocornut
parent ffbf21af6b
commit ed252c55aa
2 changed files with 3 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ Breaking Changes:
Other Changes:
- Tables: fixed Y2 position of lower horizontal border (ImGuiTableFlags_BordersOuterH)
being off by one pixel when vertical ones are not also enabled. [@thedmd]
- ImDrawData: fixed a regression in 1.92.9 where legacy `ImDrawData::CmdListsCount` was always 0.
Prefer using `ImDrawData::CmdList.Size` anyway.

View File

@@ -3026,7 +3026,7 @@ void ImGui::TableDrawBorders(ImGuiTable* table)
else if (table->Flags & ImGuiTableFlags_BordersOuterH)
{
inner_drawlist->AddLineH(outer_border.Min.x, outer_border.Max.x, outer_border.Min.y, outer_col, border_size);
inner_drawlist->AddLineH(outer_border.Min.x, outer_border.Max.x, outer_border.Max.y, outer_col, border_size);
inner_drawlist->AddLineH(outer_border.Min.x, outer_border.Max.x, outer_border.Max.y - border_size, outer_col, border_size);
}
}
if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y)