Ex_Soft
18 Jul 2012, 6:13 AM
Ext.onReady(function() {
Ext.create("Ext.window.Window", {
x: 100,
y: 100,
height: 100,
width: 100,
html: "html",
listeners: {
beforeclose: function(win, eOpts) {
if(window.console && console.log)
console.log("Ext.window.Window.beforeclose() getPosition(false)=%o, getPosition(true)=%o, height=%i, width=%i, x=%i, y=%i", win.getPosition(false), win.getPosition(true), win.height, win.width, win.x, win.y);
},
beforedestroy: function(win, eOpts) {
if(window.console && console.log)
console.log("Ext.window.Window.beforedestroy() getPosition(false)=%o, getPosition(true)=%o, height=%i, width=%i, x=%i, y=%i", win.getPosition(false), win.getPosition(true), win.height, win.width, win.x, win.y);
}
}
}).show();
});
4.1.1 getPosition() returns [-10000, -10000]. Why?
P.S. 4.0.7 works fine.
P.P.S. http://jsfiddle.net/pP9d2/
Ext.create("Ext.window.Window", {
x: 100,
y: 100,
height: 100,
width: 100,
html: "html",
listeners: {
beforeclose: function(win, eOpts) {
if(window.console && console.log)
console.log("Ext.window.Window.beforeclose() getPosition(false)=%o, getPosition(true)=%o, height=%i, width=%i, x=%i, y=%i", win.getPosition(false), win.getPosition(true), win.height, win.width, win.x, win.y);
},
beforedestroy: function(win, eOpts) {
if(window.console && console.log)
console.log("Ext.window.Window.beforedestroy() getPosition(false)=%o, getPosition(true)=%o, height=%i, width=%i, x=%i, y=%i", win.getPosition(false), win.getPosition(true), win.height, win.width, win.x, win.y);
}
}
}).show();
});
4.1.1 getPosition() returns [-10000, -10000]. Why?
P.S. 4.0.7 works fine.
P.P.S. http://jsfiddle.net/pP9d2/