Tables: Resizing weighted column preserve sum of weights. Fix ResizedColumn init leading to undesirable TableSetColumnWidth() on first run. Rework TableSettingsHandler_ReadLine() structure to allow other types of line.

This commit is contained in:
omar
2020-05-22 16:48:13 +02:00
committed by ocornut
parent bc170e7325
commit af52a0cea2
2 changed files with 17 additions and 13 deletions

View File

@ -2037,6 +2037,7 @@ struct ImGuiTable
LastResizedColumn = -1;
ContextPopupColumn = -1;
ReorderColumn = -1;
ResizedColumn = -1;
}
};
@ -2048,7 +2049,7 @@ struct ImGuiTableColumnSettings
ImS8 Index;
ImS8 DisplayOrder;
ImS8 SortOrder;
ImS8 SortDirection : 7;
ImU8 SortDirection : 2;
ImU8 Visible : 1;
ImGuiTableColumnSettings()