addClassOnOver Flicker - Ext JS

I'm having a problem upgrading to the Alpha version.
I have a a couple divs that look like:

<div class="startOption"><table><tr><td><img ..../></td></tr><tr><td>Some text</td></tr></table></div>
This code proves to flicker in IE:

var trs = Ext.select('div.startOption');
trs.addClassOnOver('startHover');
It worked fine in version .33, but now it flickers when I goes over the table or image. Has anyone else experienced this?
Reply With Quote
  # 2  
Old 03-08-2007, 06:01 PM
Default

That's going to flicker in any version (.33 too) in IE6. The problem is that all child element mouseover and mouseouts are going to bubble and cause the class to be added and removed real quick and IE will actually do a repaint instead of buffering (and realizing no repaint is required) like every other browser. So, while it is convenient to use, I wouldn't recommend using it in this situation. For an idea of how to prevent the flicker, take a look at the Ext.Button source onMouseOut.
Reply With Quote
  # 3  
Old 03-08-2007, 06:32 PM
Default

I didn't have this problem with the .40 version...

Can you see if it's a problem on my website:

http://www.emaildirect.com

Account: YUIExt
UserName: jack
Password: jack

If you browse around the site you'll also be able to see how we are utilizing your library.
Can you please try it out for me and let me know if you are having the flickering problem when you first login.

I'd apreciate it.
Reply With Quote
  # 4  
Old 03-08-2007, 06:39 PM
Default

I don't see it in FF2 but - it is a common problem I have had to work around as well. It's possible I can add a 3rd option to filter the mouse events automatically. I will look into it.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值