jQWidgets Forums

jQuery UI Widgets Forums Layouts Splitter Flexible splitter without scrollbars

This topic contains 3 replies, has 3 voices, and was last updated by  Hristo 6 years, 11 months ago.

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

  • mcseemcher
    Participant

    Hello,
    I’ve tried to find an answer but failed, sorry.

    So, I have vertical splitter with 2 panels. Page dynamically adds content inside both panels and I want splitter height to extend accordingly. I don’t want to see panel’s scrollbars, only native browser’s scrollbars are welcome. Unfortunately, what I see is content hiding under fixed panels length. But I want its length to increase as I add new grids, rows etc.

    Here’s a fiddle, I couldn’t make it work there, but may be you can take a look at my code and help…

    https://jsfiddle.net/3axgp27r/


    Hristo
    Participant

    Hello mcseemcher,

    Unfortunately, there is no such option.
    If you want to shrink the Splitter size you could calculate current size of the content and increase Splitter’s content with $("#jqxSplitter").jqxSplitter({ height: newHeight }).
    About the size of the Grid could use $("#jqxgrid").height();.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    Tyl
    Participant

    I have exactly the same problem.
    I am very surprised that a simple Splitter with a vertical orientation and 2 panes (one left and one right) cannot extend its heigth as its content grows, a simple <div> element does that.
    This natural behavior could simply be obtained by not giving any height in the splitter settings.
    Would it be possible to have that in a next release ?
    Without it this component is not usable for me.


    Hristo
    Participant

    Hello Tyl,

    The previous suggestion is not so hard to be achieved – it take the Grid’s height and after that change the Splitter height depends on this value.
    Could you provide us more details about your case?
    One example will be very helpful too.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.