syncfusion/ej2-javascript-ui-controls

ej2-grid Resize createTable getBoundingClientRect width less than browser shows

oudi opened this issue · 1 comments

oudi commented

The Grid render content shows ... not full of the cell. when I call autoFitColumns in dataBound event.
I dig the source code found the method myTable.getBoundingClientRect().width in Resize return less 2px. I comment document.body.removeChild(myTableDiv) and view it in the brower. It shows 205.156 + border = 207.156 ( in the below picutre)

image

But myTable.getBoundingClientRect().width return 205.156

image

and The cell is 206. so there is ... not full of the cell. the col in the colgroup is 206

image

image

I think because getBoundingClientRect() may not calculate the border.

@Mydeen-SN @sujithvj

oudi commented

Can you add a special class to the autoFitColumn table that I can change to the getBoundingClientRect.