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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    initDraggable gets executed after the first layout is run now.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    I'm saying initDraggable is called on first layout now
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  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
  •