Results 1 to 5 of 5

Thread: 4.1.1-rc1 bug

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default 4.1.1-rc1 bug

    The "dd" property on a Window is now "undefined" in the after render method whereas it was not in 4.0.7.

    See:

    Code:
            win = Ext.create("Ext.window.Window",cfg);
            /* 
              win.dd below will be undefined in 4.1.0 and 4.1.1.rc-1 but not in
              4.0.7-4.0.0
            */
            win.on({
                afterrender: function () {
                    win.dd.xTickSize = me.xTickSize;
                    win.dd.yTickSize = me.yTickSize;
    
    
                    if (win.resizer) {
                        win.resizer.widthIncrement = me.xTickSize;
                        win.resizer.heightIncrement = me.yTickSize;
                    }
                },
                single: true
            });
    Last edited by Chris.Schick; 4 Jun 2012 at 1:35 PM. Reason: more information added

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    initDraggable gets executed after the first layout is run now.
    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.

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default What does that mean?

    Hi Mitchell,

    I'm not sure what your reply is saying. Are you saying that this no longer works because initDraggable is called on the first layout or are you saying you fixed this by ensuring initDraggable is called on the first layout? Also in what build is this fixed in if in fact it is fixed?

    Thanks.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    I'm saying initDraggable is called on first layout now
    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.

  5. #5
    Sencha User
    Join Date
    Feb 2008
    Posts
    63
    Vote Rating
    3
      0  

    Default

    Try using afterlayout event instead of afterrender.

Posting Permissions

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