1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    43
    Vote Rating
    1
    farbodr is on a distinguished road

      0  

    Default 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'}
                                   
                            });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,219
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    43
    Vote Rating
    1
    farbodr is on a distinguished road

      0  

    Default


    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.
    Code:
    app.views.Viewport =         Ext.extend(Ext.TabPanel, {
                    fullscreen: true,
                    cardSwitchAnimation: 'flip',
                    tabBar :app.views.bottomBar,
                    items   :[{xtupe: 'homecard' ,  iconCls: 'home',     id:'home'}]
               });
    Fred

Thread Participants: 1

Tags for this Thread