PDA

View Full Version : strange error on fitToParent



demartin
27 Feb 2007, 10:34 AM
Jack,

I started to use the Alpha version for testing purposes and I found a small problem with the fitToParent function.

On version .3x it is working fine but on 1.0 Alpha I got the following error on ext-all.js:

Line 3198: p has no properties

3196 fitToParent : function(monitorResize, targetParent){
3197 var p = Ext.get(targetParent || this.dom.parentNode);
3198 p.beginMeasure();
3199 var box = p.getBox(true, true);
3200 p.endMeasure();
3201 this.setSize(box.width, box.height);
3202 if(monitorResize === true){
3203 Ext.EventManager.onWindowResize(this.fitToParent, this, true);
3204 }
3205 return this;
3206 },


Example with 1.0 Alpha:

http://demartin.base64.com.br/fittoparent1.html

Example with 0.33:

http://demartin.base64.com.br/fittoparent0.html

Did I missed something?

Regards,

Fabio De Martin

demartin
27 Feb 2007, 10:44 AM
Sorry, I forgot...

It happens only when you try to resize the window.

Regards

jack.slocum
28 Feb 2007, 9:10 AM
Fixed in the coming rev. Thanks for reporting.