Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1362 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    56
    Vote Rating
    1
    jwjiwon is on a distinguished road

      0  

    Default [ST2 PR3] navigation view with useTitleForBackButtonText true

    [ST2 PR3] navigation view with useTitleForBackButtonText true


    REQUIRED INFORMATION




    Ext version tested:
    • Sencha Touch 2

    Browser versions tested against:
    • Google Chrome 16

    Description:
    • In the condition that the config useTitleForBackButtonText is true,

      when new cards keeps to be pushed into navigation view, then another back button is created.

    The result that was expected:
    • just one back button

    The result that occurs instead:
    • it created a number of button whenever the panel pushed into the navigation view

    Test Case:


    Code:
        Ext.application({
      name: 'Joy',
        
      launch: function(){
        
        var container = Ext.create('Ext.NavigationView', {
            fullscreen: true,
            useTitleForBackButtonText: true,
            //defaultBackButtonText: 'back',
              items:[
                {
                    xtype: 'tabpanel',
                    docked: 'bottom',                
                    tabBar: {
                        activeTab: 0,
                        docked: 'bottom'
                    },
                    items: [{    
                                title: 'Home',
                                iconCls: 'home'
                            },
                            {
                                title: 'Home1',
                                iconCls: 'bookmarks'
                            }
                    ],
                    listeners: {
                            
                        activeitemchange : function(tabPanel, newTab){
             
                            newCard = new Ext.Panel({
                                title: 'hihi',
                                html : 'hi'
                            });
                            container.push(newCard);
                            
                        }    
                    }
                        
                    
                }  
            ]
            
            });
        }
    });





    HELPFUL INFORMATION




    Screenshot or Video:

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    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


    Thank you for the report.
    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.

Thread Participants: 1