inputs icon indicating copy to clipboard operation
inputs copied to clipboard

Set a custom table row height

Open mootari opened this issue 3 years ago • 1 comments

In Inputs.table the row height that is used as basis for height calculations is hardcoded to 22px. If the actual rows deviate from this height, the overall height estimate won't match. As a result the table's scrollbar will misrepresent the total height, causing jumps when rows are lazily loaded.

There is an open issue to create better estimates. In the meantime it would help to be able to define a custom rowHeight basis.

mootari avatar Feb 24 '22 14:02 mootari

Is that why when setting the number of rows to display I have to add 0.5.
Like this example to show 18 rows I define it to 18.5 so the last row is not a half shown.

Inputs.table(date, { rows: 18.5 })

hellonearthis avatar Jun 22 '22 05:06 hellonearthis