1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default Unanswered: tabbar tab missing in sencha touch 2.2.0

    Unanswered: tabbar tab missing in sencha touch 2.2.0


    hi i've this code on my app with sencha 2.1.1:

    PHP Code:
    Ext.define('myapp.view.Main', {    
    extend'Ext.tab.Panel',   
    xtype'main',    
    requires: [       
     
    'Ext.TitleBar',    
    ],
     
    initialize: function () {
     
    this.callParent(arguments);  
     
    var 
    topBar = {
                
    xtype'titlebar'
               
    docked'top'
               
    ui'dark'
               
    title'Home'
            
    }            
            
    this.add([topBar]);   
    },

    config: {        
           
    tabBarPosition'bottom',        
           
    fullscreen:true,
            
    layout:'card',
            
    items: [
                {
                    
    xtype'homeview',
                    
    title'Home',
                    
    iconCls'home'
                
    }, 
               {
                    
    xtype'ristorantiview',
                    
    title'Ristoranti',
                    
    iconCls'info'
                
    }
            ]
        }}); 
    it works flawless, i see the two tab icon on the bottom bar.
    The same code with sencha 2.2.0 doesn't show the tabs, i if see in the generated html with safari, both tabs get style="display: none !important".

    I didn't understand where it takes this style.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Answers
    3451
    Vote Rating
    817
    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


    Removing the xtype configs (as I don't have them), your code works for me in 2.2.0
    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
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Removing the xtype configs (as I don't have them), your code works for me in 2.2.0
    Hi Mitchell, thanks for your answer.
    If i remove xtype, as you says, effectively the icons appears, but now, how can i get it to works?
    How can i load the right view when i click a tab?

    thanks

Thread Participants: 1

Tags for this Thread