PDA

View Full Version : resize on panel



olriche38
24 Mar 2010, 7:04 AM
This is my code :

var mainPanel = new Ext.Panel({
height: 830,
autoWidth: true,
bodyBorder: false,
layout: 'border',
listeners: {
resize: function(panel){
console.info('move');
}
}
});

I define a panel with autoWidth, but I can have the event of the resize of my windows (FF).

But I don't know why?

olriche38
25 Mar 2010, 7:51 AM
Nobody know??

fay
25 Mar 2010, 8:00 AM
I'm confused by your question, do you mean the event is firing or is not firing?? There are notes in the documentation that refer to how autoWidth (http://www.extjs.com/deploy/dev/docs/?class=Ext.Panel&member=autoWidth) "behaves".

olriche38
25 Mar 2010, 8:06 AM
In fact, when I resize my window. The width of panel change, because the autowidth. But I would like to know if we can fire this event????

Animal
25 Mar 2010, 8:10 AM
Use a Viewport.

olriche38
25 Mar 2010, 8:20 AM
with viewport I don't have the same result^^

Animal
25 Mar 2010, 8:53 AM
Use a Viewport.