Calculated row-height "out by one"

Tags: #<Tag:0x00007f0b0b713348>

When I have HTML content within a cell, the table is getting the height calculation out by one pixel.

If I try and adjust the CSS within cell it has no effect. For instance, if I shrink it slightly - or set a negative margin, it’s still always out by one because (I think)

  • something is measuring the height (and getting it wrong by one)
  • setting the fixed height of the row.

Any ideas how I could hook into whatever’s doing the measuring and adjust accordingly. Or is there some other fix? Thanks

Have you tried autoRowSize: true, Phil?

Tried autoRowSize just now, no effect.

here’s what I’m setting:

Unless there is a clean way to hook into whatever is doing the measuring and give it an accurate value - I may have to step in and take total control over calculating row heights (retain that state myself).

Hence my question here - which you helpfully pointed me in the right direction on @aleksandra_budnik!

Yup, as mentioned just a minute ago in the corresponding topic you can manage the hooks by calling the addHook or addHookOnce if you need to run only once.
You may want to check the modifyRowHeight hook.

1 Like

thanks. Sorted now, by managing all the heights manually myself! Cheers

Great. I’m glad that it works for you. Thanks for an update.