PDA

View Full Version : [OPEN] [CLOSED][3.1] - Ext.Panel - event "resize" missing parameters



berniesaurus
30 Jan 2010, 4:40 PM
Normally there should be 5 parameters passed to the eventhandler:

resize : ( Ext.Component this, Number adjWidth, Number adjHeight, Number rawWidth, Number rawHeight )


In 3.1 there is only passed the first parameter, the last 4 are undefined, this works fine in 3.0.3

My Code:





this.layout = new Ext.Panel({
id: "some_id",
html: html,
title: "Edit",
autoScroll: true
});
this.layout.on("resize", this.onLayoutResize.bind(this));

.....

onLayoutResize: function (el, width, height, rWidth, rHeight) {
this.setLayoutFrameDimensions(width, height);
},

evant
30 Jan 2010, 10:38 PM
This issue is already corrected in SVN, it will be a part of 3.1.1.