[1998] UI-TABLE only renders data when layout configuration is set to auto#2141
Conversation
|
Hey @Steve-Mcl so I looked into alternate solutions for this and what I came up with was adding a So what this does is count the optional header rows (label/search) and set an explicit I'm not sold that this is a better solution since it feels a little fragile to me, but if keeping the DOM structure identical is important then this is the way to go. What do you think? |
It is probably a very small percentage of people who apply custom styling then an even smaller subset who target the table with an ultra specific selector - so I would say the blast radius is small enough to go with the original solution. Thanks for taking the extra time to look into this and lets go back to your v1 solution. |
|
@n-lark It would be worth checking this with the row height set to Compact in the theme if you have not already done that. |
b7ea830 to
c93b888
Compare
|
Hi @Steve-Mcl thanks for the consult, I moved back to the original solution. @colinl I did check all 3 row heights - thanks for the heads up! Compact
Comfortable
Default
|




Description
When a
ui-tablewas given a fixed size, the data table got clamped to a single grid row, hiding the header and all but one row. This was because the component had multiple root elements, so thegrid-row-endstyle that makes a widget fill its configured height never applied to it.Wrapped the table in a single root element and used a flex column so it now fills its configured height and scrolls internally, while auto sizing still grows to fit. Added a fixed-size table to the test fixture with a regression test.
Related Issue(s)
Resolves #1998
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel