jQWidgets Forums

jQuery UI Widgets Forums Grid Feature Request: max-width

This topic contains 3 replies, has 2 voices, and was last updated by  Pietervk 9 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Feature Request: max-width #81936

    Pietervk
    Participant

    Please let me know if this is not the right spot, but I have a request for a useful feature for the grid: max-width. If this can be achieved in another way, I would be happy to know.
    If I now specify a width that is at least the total column size, there is no scrollbar, even if the window size is too small to show the total grid. So I either have to have a smaller width with always showing a scrollbar, or specify a percentage for the grid width and no width for the last column. However that percentage could be too large on large windows.

    So I came up with the following proposal

    max-width: value. The width will be the total size of the columns, but not exceeding the specified max-width. If the column widths exceed the max-width, a scrollbar will appear.
    max-width: percentage. Like with a fixed width, but now the maximum will be a percentage of the window width.

    Benefit: simple responsive behavior.

    Thanks for a great product!

    Feature Request: max-width #81955

    ivailo
    Participant

    Hi Pietervk,

    Thanks for the suggestion.
    We will consider this feature.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Feature Request: max-width #81957

    ivailo
    Participant

    Hi Pietervk,

    You can also achieve this feature without using of max-width property.
    Just create the grid in a div container with max-width and set widget’s width to be 100%.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Feature Request: max-width #81964

    Pietervk
    Participant

    Thanks ivailo, that comes close, with using a margin: 0 auto 0 auto.
    I still have to calculate the sum of all the columns every time I decide to make a change to a column, and as I am lazy, having the build in max-width property would still be helpful.

    I will use your solution for now.

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

You must be logged in to reply to this topic.