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
I noticed a small unfortunate behavior with the table when I activate the resizable columns in expand mode and I want ellipsis on the header of the table.
If I resize a column, it slightly change the width of all the other columns and activate ellipsis for some of them.
This is probably due to the DomHandler getOuterWidth function that is using offsetWidth which returns an integer and not a precise decimal of the original width of the column.
If you resize the name column, quantity and price ellipsis activate.
From my research I found out you could use element.getBoundingClientRect().width instead of offset width to get a precise width of the element, but I'll let you decide what to do (if anything) about this behavior.
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
-
Hello,
I noticed a small unfortunate behavior with the table when I activate the resizable columns in expand mode and I want ellipsis on the header of the table.
If I resize a column, it slightly change the width of all the other columns and activate ellipsis for some of them.
This is probably due to the DomHandler getOuterWidth function that is using offsetWidth which returns an integer and not a precise decimal of the original width of the column.
Here's a stackblitz project :
https://stackblitz.com/edit/xshg2hyb
If you resize the name column, quantity and price ellipsis activate.
From my research I found out you could use element.getBoundingClientRect().width instead of offset width to get a precise width of the element, but I'll let you decide what to do (if anything) about this behavior.
Beta Was this translation helpful? Give feedback.
All reactions