mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Tables: Handle columns clipped due to host rect
Return false in user functions, set SkipItems in window, redirect to dummy draw channel.
This commit is contained in:
@ -3619,7 +3619,9 @@ static void ShowDemoWindowTables()
|
||||
ImGui::TableNextRow();
|
||||
for (int column = 0; column < 7; column++)
|
||||
{
|
||||
ImGui::TableSetColumnIndex(column);
|
||||
// Both TableNextCell() and TableSetColumnIndex() return false when a column is not visible, which can be used for clipping.
|
||||
if (!ImGui::TableSetColumnIndex(column))
|
||||
continue;
|
||||
if (column == 0)
|
||||
ImGui::Text("Line %d", row);
|
||||
else
|
||||
|
Reference in New Issue
Block a user