strange error on fitToParent - Ext JS

Fabio DeMartin报告了ExtJS 1.0 Alpha版本中FitToParent功能的一个错误,该错误仅在尝试调整浏览器窗口大小时出现。在0.33版本中则没有此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
Reply With Quote
  #2  
Old 02-27-2007, 12:44 PM
DefaultMore info

Sorry, I forgot...

It happens only when you try to resize the window.

Regards
Reply With Quote
  #3  
Old 02-28-2007, 11:10 AM
Default

Fixed in the coming rev. Thanks for reporting.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值