Tables: Fixes to support any number of frozen rows (over modifications to clipper code in master) + make clipper run eval after clipect update

This commit is contained in:
omar
2020-09-28 17:30:39 +02:00
committed by ocornut
parent cc12ea084b
commit 25b5cc2f95
3 changed files with 21 additions and 5 deletions

View File

@ -1774,6 +1774,10 @@ void ImGui::TableEndRow(ImGuiTable* table)
column->DrawChannelCurrent = column->DrawChannelRowsAfterFreeze;
column->ClipRect.Min.y = r.Min.y;
}
// Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y
SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect);
table->DrawSplitter.SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent);
}
if (!(table->RowFlags & ImGuiTableRowFlags_Headers))