jQWidgets Forums

jQuery UI Widgets Forums Grid grid width 100%

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • grid width 100% #52390

    dpibt
    Participant

    Hi,

    I have a grid with its width set to 100% and I expect it to fill the entire parent container without overflowing it but it actually overflows it. I guess the problem is that borders aren’t considered. Even if I set the width of the grid to 500px in the example I’m linking to below, the grid always ocupy 2px more than expected due to the borders.

    JSFiddle to reproduce the issue:
    http://jsfiddle.net/nRVyd/

    Thank you!

    grid width 100% #52391

    Dimitar
    Participant

    Hi dpibt,

    The solution is to set the grid’s border to none:

    <div id="jqxgrid" style="border: none;"></div>

    Best Regards,
    Dimitar

    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.