1. #1
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    6
    Vote Rating
    0
    Chris.Schick is on a distinguished road

      0  

    Default 4.1.1-rc1 bug

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    847
    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


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

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    6
    Vote Rating
    0
    Chris.Schick is on a distinguished road

      0  

    Default What does that mean?

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    847
    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


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

  5. #5
    Sencha User
    Join Date
    Feb 2008
    Posts
    59
    Vote Rating
    3
    urban.novak is on a distinguished road

      0  

    Default


    Try using afterlayout event instead of afterrender.