-
21 Feb 2012 7:28 AM #1
icons in tab bar not centered
icons in tab bar not centered
The icons on my tab bar don't seem to center-align. They look fine in safari on OSX but in the iOS simulator they remain left aligned. Here is the code snippet were I create the tab bar:
Code:app.views.bottomBar = new Ext.TabBar ({ id : 'bottomBar', dock : 'bottom', defaults: {iconMask: true}, scroll : 'horizontal', layout : {pack: 'center'} });
-
21 Feb 2012 8:14 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
You should use a remote debugger like weinre to inspect the DOM to see what is going on in CSS on the iOS device.
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.
-
21 Feb 2012 5:46 PM #3
After looking at it with the debugger it appears that there is an extra button with no image or text and it behaves like the home button on the tab bar. I've checked the code over and over and just can't see it.
This puts only two button in the tab bar. One has no image or title.
FredCode:app.views.Viewport = Ext.extend(Ext.TabPanel, { fullscreen: true, cardSwitchAnimation: 'flip', tabBar :app.views.bottomBar, items :[{xtupe: 'homecard' , iconCls: 'home', id:'home'}] });


Reply With Quote