1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default Unanswered: Resizing panels without a border layout

    Unanswered: Resizing panels without a border layout


    If I have 2 panels in a hbox and want to have one of them to have "resizable" width.
    I read about the border-layout being rather heavyweight, so I don't want to use it for just 2 panels.

    Is this possible?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,800
    Answers
    359
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Check out the Ext.resizer.Splitter class. I think it'll be what you're looking for.

    Code:
    Ext.widget('container', {
        renderTo: Ext.getBody()
        , width: 300
        , height: 100
        , layout: {
            type: 'hbox'
            , align: 'stretch'
        }
        , items: [{
            xtype: 'panel'
            , title: 'Left'
            , flex: 1
        } ,{
            xtype: 'splitter'
        }, {
            xtype: 'panel'
            , title: 'right'
            , flex: 1
        }]
    });

Thread Participants: 1