jQuery UI Widgets Forums Grid Horizontal scrollbar

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  alexz 12 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Horizontal scrollbar #10718

    alexz
    Member

    Hi, how can I ensure, that horizontal scroll is never visible? I have dropdown columns, and dropdown column seems to set its width always a little bit greater than actually needed. Any help appreciated, thanks.

    Horizontal scrollbar #10719

    Peter Stoev
    Keymaster

    Hi alexz,

    The horizontal scrollbar is automatically displayed when the content requires horizontal scrolling i.e when the sum of the columns width is greater than the Grid’s width. It isn’t possible to override that behavior.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Horizontal scrollbar #10884

    alexz
    Member

    Thanks Peter,

    I’ve finally came up with solution like that:

            autoresize: function() {
    this.autoresizecolumns();
    var width = 0;
    var columns = this.columns;
    for (var i = 0; i < columns.records.length; i++) {
    var columnRecord = columns.records[i];
    if (!columnRecord.hidden) {
    width += columnRecord.width;
    }
    }
    this.width = width;
    }
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.