Results 1 to 2 of 2

Thread: Titlebar auto-resize infinite loop

    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
      0  

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

    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.

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
  •