Reputation: 647
When i resize my window then alert width and height then again resize my window again alert width and height, how it will be please help. In extjs4
new Ext.Window({
title:'my window',
id:'mywindow',
listeners:{
alert("need width and height");
}
}).show();
please help me. thanks in advance.
Upvotes: 1
Views: 2875
Reputation: 2216
try adding 'resize' event on window
Ext.create('Ext.window.Window', {
title : 'Hello',
height : 200,
width : 400,
layout : 'fit',
listeners : {
'resize' : function(win,width,height,opt){
console.log(width);
console.log(height);
}
}
}).show();
refer Ext.window.Window-event-resize
Upvotes: 3