You found a bug! We've classified it as TOUCH-3010 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Soviet Russia
    Posts
    16
    Vote Rating
    0
    lkjhgfdsa is on a distinguished road

      0  

    Default Titlebar auto-resize infinite loop

    Titlebar auto-resize infinite loop


    REQUIRED INFORMATION


    Sencha Touch version tested:
    • Sencha Touch 2.0.1

    Browser versions tested against:
    • Safari 5.1.7
    • Mobile Safari iOS 5.1.1
    • Google Chrome 19.0.1whatever

    DOCTYPE tested against:
    • Correct!

    Description:
    Steps to reproduce the problem:
    • Please check the previous link

    The result that was expected:
    • Resize event shouldn't be fired forever

    The result that occurs instead:
    • Resize event IS fired forever

    Test Case:

    http://www.senchafiddle.com/#M9nnB



    HELPFUL INFORMATION


    See this URL for live test case: http://www.senchafiddle.com/#M9nnB


    Possible fix:
    • Use a toolbar instead

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


    Boiled it down to this minimal testcase:

    Code:
        Ext.create('Ext.Container', {
                fullscreen : true,
                items      : [
                    {
                        xtype  : 'titlebar', /* try toolbar instead! ;) */
                        docked : 'top',
                        items  : [
                            {
                                xtype     : 'button',
                                text      : 'Looooooooong string!',
                                listeners : {
                                    resize : function () {
                                        console.log('resize');
                                    }
                                }
                            }
                        ]
                    }
                ],
                width : 200
            });
    The issue is the titlebar has to do size checking but it shouldn't have a run away like that.
    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.