Tables: fixed "resize to default" of multiple stretch column (added 3b3503e, broken 7a61f340).

Fixed a warning.
Storing RightMostStretchedColumn column for resizing code.
Avoid clearing RightMostEnabledColumn in BeginTable() so resizing code can potentially use it.
(Added regression tests for resize all to default imgui_dev)
This commit is contained in:
ocornut
2020-12-14 11:59:01 +01:00
parent f2df804fcc
commit bd899efbd0
3 changed files with 21 additions and 15 deletions

View File

@ -4458,7 +4458,7 @@ static void ShowDemoWindowTables()
for (int column = 0; column < COLUMNS_COUNT; column++)
{
ImGui::TableSetColumnIndex(column);
ImGui::Text("Cell %d,%d", 0, row);
ImGui::Text("Cell %d,%d", column, row);
}
}
ImGui::EndTable();