strange error on fitToParent - Ext JS

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
  # 2  
02-27-2007, 12:44 PM
More info

Sorry, I forgot...

It happens only when you try to resize the window.

Regards
  # 3  
02-28-2007, 11:10 AM

Fixed in the coming rev. Thanks for reporting.

你可能感兴趣的:(html,ext)