You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by tfcroft4 November 20, 2024, as #2973
If I place a table in a box and add the box to the main window the table columns are compressed.
If I add a table directly to the main window the table expands as expected.
My guess is that the code that as a result of being placed inside a box, the trigger to balance the initial column layout is being triggered earlier in the process than when the table is "bare".
For anyone looking to investigate - the column are resized using the method _resize_columns(), which is triggered when a column is added or removed, or when the layout tells the table that it has resized. My guess is that the pending_resize flag is the cause of the problem here; it exists as an optimisation so that the columns aren't continuously resized when the window is resized; but there might be a need for an additional check that the "candidate" size is actually big enough (it wouldn't surprise me if the first resize is being done with a table size of (0x0) on an initial layout.
Originally posted by tfcroft4 November 20, 2024, as #2973
If I place a table in a box and add the box to the main window the table columns are compressed.
If I add a table directly to the main window the table expands as expected.
The text was updated successfully, but these errors were encountered: