Hi,
I’m using jqxGrid without specifying the last column’s width (which means it’s auto) and I recently upgraded to version 4.0. Then I saw the horizontal scrollbar start to show on all of my grids at the first rendering time, when I resize the page the scrollbar is gone. I debugged jqxgrid.js and compared to the old version of jqxgrid.js. I was able to track down to a specific change in the new version that was causing the issue. In unminimized file, in line 6013, inside function _rendercolumnheaders, new version had these lines which was not in the old version:
if (G – z < 3 && G != z) {
T += 2
}
When calculating the last column’s width , it added extra 2 pixels, which caused the grid to have the horizontal scrollbar. After I commented it out, the issue is gone. So I’m wondering what’s the reason for adding these lines in the new version, and if there is any approach you suggest to fix this other than commenting this out in your source code.
Thanks & Regards,
Meng