Tables: Fixed bottom-most and right-most outer border offset by one. (#6765, #3752)

This commit is contained in:
ocornut
2023-09-11 14:44:52 +02:00
parent 357f752bed
commit a34071876f
2 changed files with 2 additions and 1 deletions

View File

@ -2640,7 +2640,7 @@ void ImGui::TableDrawBorders(ImGuiTable* table)
const ImU32 outer_col = table->BorderColorStrong;
if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter)
{
inner_drawlist->AddRect(outer_border.Min, outer_border.Max, outer_col, 0.0f, 0, border_size);
inner_drawlist->AddRect(outer_border.Min, outer_border.Max + ImVec2(1, 1), outer_col, 0.0f, 0, border_size);
}
else if (table->Flags & ImGuiTableFlags_BordersOuterV)
{