jQWidgets Forums

jQuery UI Widgets Forums Grid Start seeing horizontal scrollbar on version4.0

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • mengl2
    Participant

    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


    ivailo
    Participant

    Hi Meng,

    Please try this demo. Here is not occurred such a behavior.
    Also, please, update to the latest version(4.1.2).

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.