Tables: Fixed incorrect auto-fit of parent windows when using non-resizable weighted columns. (#5276)

This commit is contained in:
ocornut
2022-05-02 16:32:17 +02:00
parent 709bc03d6f
commit 3e5dde9a26
4 changed files with 15 additions and 6 deletions

View File

@ -2346,6 +2346,7 @@ struct IMGUI_API ImGuiTable
float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details.
float ColumnsGivenWidth; // Sum of current column width
float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window
float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns
float ResizedColumnNextWidth;
float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table.
float RefScale; // Reference scale to be able to rescale columns on font/dpi changes.