jQWidgets Forums

jQuery UI Widgets Forums Layouts Splitter Liquid splitter-based UI.

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 13 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Liquid splitter-based UI. #2159

    I have a UI which looks like:

    In short, it’s a menubar on top, 3 panes in the middle (each separated with a splitter) and a bottom pane separated from the rest with a splitter.

    What I need is that when the window is resized, these panes resize with it as well. I realize it’s hard to achieve this without percentages, so instead I’d be happy to just have the bottom and right panes resize automatically.

    Unfortunately, when I tried setting panel sizes as percentages, they just wouldn’t work… so I don’t know if there is any code to handle percentages or not.

    Edit: The following code will come into the equation somewhere…

    jQuery(window).resize(function(){ /* somehow tell splitters to refresh */ });

    Liquid splitter-based UI. #2174

    Peter Stoev
    Keymaster

    Hi uuf6429,

    Percentages support is planned and will be supported in the next version. As a work-around, I suggest you the following:

    To refresh the Splitter, you can use its ‘_refreshWidgetLayout’ method.

    $('#splitter').jqxSplitter('_refreshWidgetLayout');

    Best Regards,
    Peter Stoev

    http://www.jqwidgets.com
    jQWidgets Team

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

You must be logged in to reply to this topic.