1. #1
    Sencha User castitas's Avatar
    Join Date
    Sep 2011
    Location
    US
    Posts
    116
    Vote Rating
    3
    Answers
    3
    castitas is on a distinguished road

      0  

    Default Unanswered: Problems with tab panel in a window

    Unanswered: Problems with tab panel in a window


    So I have this code
    PHP Code:
    Ext.create("Ext.window.Window", {
        
    resizabletrue,
        
    width400,
        
    height390,
        
    x400,
        
    y200,
        
    layout'fit',
        
    items: [
            
    Ext.create('Ext.tab.Panel', {
                
    //width: 300,
                //height: 300,
                //renderTo: document.body,
                
    items: [{
                    
    title'Foo',
                    
    html"HELLO"
                
    }, {
                    
    title'Bar',
                    
    tabConfig: {
                        
    title'Custom Title',
                        
    tooltip'A button tooltip'
                    
    }
                }]
            })
        ]
    }).
    show(); 
    This is what it creates

    screen.png

    The tabpanel code I got from the docs. As you can tell, the tabs don't appear and there is no top bar to the window. It also won't resize. I've tried changing the height, but that did nothing.
    I can't imagine this is a bug, so I must be missing something.
    What am I doing wrong?
    word

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    Answers
    486
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    It would seem that there's more to it than that - if you drop that code into one of the inline examples' code editors on the api docs it runs fine.

    What version of the framework are you using?

  3. #3
    Sencha User castitas's Avatar
    Join Date
    Sep 2011
    Location
    US
    Posts
    116
    Vote Rating
    3
    Answers
    3
    castitas is on a distinguished road

      0  

    Default


    Never mind. ...it works now. I'm not sure why it didn't.
    word

Thread Participants: 1

Tags for this Thread