-
12 Dec 2011 7:52 AM #1
TabPanel toolbar icon positioning in PR3
TabPanel toolbar icon positioning in PR3
I have noticed that since switching to PR3 the positioning of icons for tabs on my tabPanel are now aligned to the left and not centered as they used to be in PR2.
I scanned the release notes to see if there are any new config params but couldnt spot anything, what do I need to do to get the icons centered once again?
Thanks
-
12 Dec 2011 8:55 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Simple test case?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Dec 2011 8:59 AM #3
Here you go:
Code:Ext.define('PinpointersTouch.view.MainView', { extend: 'Ext.TabPanel', xtype: 'mainview', requires: [ 'PinpointersTouch.view.UnitList', 'PinpointersTouch.view.GMap' ], config: { //_loginWin: null, fullscreen: true, tabBarPosition: 'bottom', layout: { //type: 'card', animation: { type: 'fade' } }, items: [ { title: 'Home', iconCls: 'home', html: [ '<h1>Welcome to Pinpointers Touch</h1>' ].join("") }, { xtype: 'unitslist', title: 'Locations', iconCls: 'locate', }, { xtype: 'gmap', title: 'Map', iconCls: 'maps', },{ xtype: 'toolbar', docked: 'top', ui: 'light', defaults: { iconMask: true }, items: [ { xtype: 'spacer' }, { iconCls: 'refresh', itemId: 'btnRefresh' }, { iconCls: 'user', itemId: 'btnUserLogout' }, { iconCls: 'settings' } ] } ] } });
-
12 Dec 2011 9:01 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
You mean the tabs themselves centered in the tab bar?
Code:var tabpanel = Ext.create('Ext.tab.Panel', { fullscreen : true, tabBar : { docked : 'bottom', layout : { pack : 'center' } }, items : [ { title : 'Tab One', tabProp : 'one' }, { title : 'Tab Two', tabProp : 'two' } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Dec 2011 9:05 AM #5
Ahh! My bad, thanks for this all sorted now.


Reply With Quote