-
4 Jun 2012 1:32 PM #1
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
-
7 Jun 2012 1:56 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
initDraggable gets executed after the first layout is run now.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
8 Jun 2012 4:05 AM #3
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.
-
8 Jun 2012 4:30 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
I'm saying initDraggable is called on first layout now
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
8 Jun 2012 5:47 AM #5
Try using afterlayout event instead of afterrender.


Reply With Quote