-
22 May 2012 1:47 PM #1
Unanswered: How to position Toolbar above tab bar on tab panel
Unanswered: How to position Toolbar above tab bar on tab panel
How do I position a toolbar above a tabbar on a tab panel? In my application the tab panel is positioned above the toolbar which is frustrating since the toolbar contains the title for the page...
Here is the code for my toolbar
I'm adding the toolbar and the tabs to the tab panel like this:Code:var topToolbar = new Ext.Toolbar({ title: 'Gene Display', docked: 'top', items: [ backButton, searchButton ] });
This is the result:Code:this.add([topToolbar,geneTab,functionTab]);
o5fY8.jpg
Can anyone tell me what's going on?
-
22 May 2012 6:37 PM #2Sencha - Services Team
- Join Date
- Mar 2007
- Location
- Foristell, MO
- Posts
- 1,100
- Vote Rating
- 3
- Answers
- 12
well, you're only showing some code snippets so I'm not sure when/how you are doing things.
As an alternative, you can create your tab panel this way and the toolbar is docked to the top:
Code:Ext.create('Ext.tab.Panel', { fullscreen: true, items: [ { xtype : 'toolbar', title : 'Gene Display', docked : 'top', items : [ { text : 'Results', ui : 'back' }, { text : 'Search', ui : 'back' } ] }, { title : 'Gene', html : 'Gene Screen' }, { title : 'Function', html : 'Function Screen' } ] });Jack Ratcliff
Sencha Inc, Green bleeding Senchan
How to report a bug:
http://www.sencha.com/forum/showthre...o-report-a-bug


Reply With Quote