Results 1 to 3 of 3

Thread: icons in tab bar not centered

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    43
    Vote Rating
    1
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    43
    Vote Rating
    1
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •