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
Hi, i have been trying to virtualise the row rendering for a table (taking the dynamic height approach) but i have noticed an issue where some rows would have a small pixel gap or overlap by a pixel. I've tracked it down to the defaultMeasureSize function getting the row heights by checking the offsetHeight property of the tr element which gets the value as an integer. Can you think of a workaround for this? I have tried using getComputedStyle(row) in a custom measureSize function and parsing the height property (e.g. "42.23px") but i still get weird gaps and it feels a little hacky. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, i have been trying to virtualise the row rendering for a table (taking the dynamic height approach) but i have noticed an issue where some rows would have a small pixel gap or overlap by a pixel. I've tracked it down to the defaultMeasureSize function getting the row heights by checking the offsetHeight property of the tr element which gets the value as an integer. Can you think of a workaround for this? I have tried using getComputedStyle(row) in a custom measureSize function and parsing the height property (e.g. "42.23px") but i still get weird gaps and it feels a little hacky. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions