-
14 Jan 2013 6:46 AM #1
Error raised when opening a new window in ExtTop
Error raised when opening a new window in ExtTop
With ExtJS 4.2.0.265, trying to open any window in the ExtTop example raises an error about “win.dd is undefined”. It worked well under previous beta version.
Effectively the “createWindow()” method of the Desktop class registers a listener on “boxready”:
and under the beta2 the event gets triggered before the DD machinery has been configured (I guess by the “initDraggable()” method of the Window class). With the beta1 version, at that point both the “dd” property and the “resizer” property are assigned.Code:win.on({ boxready: 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 });
Don't know what the proper fix should be, apparently just hooking on the “show” event works ok.
Thank you in advance,
bye, lele.
-
14 Jan 2013 2:02 PM #2Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!


Reply With Quote