Tables: Restore width/weight saving/loading code. Non-weighted width currently not font/DPI change friendly.

This commit is contained in:
omar
2020-05-22 18:00:23 +02:00
committed by ocornut
parent af52a0cea2
commit 6bc0bbccf3
2 changed files with 28 additions and 14 deletions

View File

@ -2050,7 +2050,8 @@ struct ImGuiTableColumnSettings
ImS8 DisplayOrder;
ImS8 SortOrder;
ImU8 SortDirection : 2;
ImU8 Visible : 1;
ImU8 IsVisible : 1;
ImU8 IsWeighted : 1;
ImGuiTableColumnSettings()
{
@ -2059,7 +2060,8 @@ struct ImGuiTableColumnSettings
Index = -1;
DisplayOrder = SortOrder = -1;
SortDirection = ImGuiSortDirection_None;
Visible = 1;
IsVisible = 1;
IsWeighted = 0;
}
};