syncfusion / ej2-javascript-ui-controls

Syncfusion JavaScript UI controls library offer more than 50+ cross-browser, responsive, and lightweight HTML5 UI controls for building modern web applications.
https://www.syncfusion.com/javascript-ui-controls
Other
401 stars 159 forks source link

ej2-grid Resize createTable getBoundingClientRect width less than browser shows #130

Closed oudi closed 2 years ago

oudi commented 2 years ago

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 2 years ago

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