PDA

View Full Version : [FIXED][3.0rc1.1] hover



INeedADip
7 May 2009, 11:16 AM
Ext.get('copy').hover(function(){
console.info('here');
});

Does this work for anyone else? In FireFox?

Condor
7 May 2009, 11:20 AM
You probably need to provide both an enter and a leave method, e.g.

Ext.get('copy').hover(
function(){
console.info('mouseenter');
},
function(){
console.info('mouseleave');
}
);

INeedADip
7 May 2009, 12:17 PM
Still doesn't work for me..

Condor
7 May 2009, 11:53 PM
Well, it works for me (but I tested the current SVN trunk and not RC1.1).

It there something special about the 'copy' element markup?

aconran
8 May 2009, 7:05 AM
hover method working here. Ineedadip could you please provide us a test case which we can verify that there is an issue?

Thanks,

Condor
8 May 2009, 7:15 AM
Isn't this the same problem as this thread (http://extjs.com/forum/showthread.php?t=66086)?

Animal
8 May 2009, 7:15 AM
hover uses the mousenter and mouseleave events now doesn't it?

There are ongoing issues with this which seem to have finally been cleared by by some collaboration between mystix and hendricd.

http://extjs.com/forum/showthread.php?p=327225#post327225

hendricd
8 May 2009, 8:00 AM
@INeedADip -- I'm assuming you are wrapping your attempt in Ext.onReady, right ?

INeedADip
8 May 2009, 8:26 AM
It is in Ext.onReady...and it works fine in IE, just not in FireFox.

INeedADip
3 Jun 2009, 8:26 AM
still doesn't seem to work in RC 2

mystix
3 Jun 2009, 8:38 AM
still doesn't seem to work in RC 2

this works flawlessly for me in 3.0rc2 on Firefox 3.0.10


Ext.getBody().hover(
console.info,
console.info
);


like @condor says in post #2 you need to specify both an enter and leave method.

INeedADip
3 Jun 2009, 8:51 AM
I think I found my problem, I use the ext-yui-adapter. Because we use YUI for a lot of other things. I took that out on a page and used the ext-base.js instead and it worked.

So it looks like it doesn't work using the YUI adapter.
Can anyone else confirm this?

mjlecomte
12 Jun 2009, 8:06 PM
I confirm that example Mystix posted does not work with the yui-adapter.

Condor
12 Jun 2009, 11:49 PM
I tested YUI 2.7.0 (fail), Prototype 1.6.0 (fail), 1.6.1_rc2 (ok) and jQuery 1.3.2 (ok).

mouseenter and mouseleave support will need to be added to the YUI adapter and maybe also to the Prototype adapter (if we still want to support 1.6.0).

mjlecomte
18 Jun 2009, 9:23 AM
Just an update: this issue appears to be still OPEN as of now, but the plan is to defer this until after the release of 3.0 final.

Condor
18 Jun 2009, 11:25 PM
I think it's a bad idea to defer this. This is essentially a showstopper for anyone using the YUI or prototype adapter!

evant
22 Jun 2009, 2:16 AM
I've added support for mouseenter/mouseleave for Prototype and YUI. Prototype 1.6.1 will add it. It's also slated for the 3.x release of YUI. The solution isn't great, however it will work until native support is added.

INeedADip
7 Jul 2009, 8:16 AM
While the hover does work the YUI adapter now (3.0 release), it appears to be buggy.

I use it for some custom toolbar item highlighting, and it flickers (like the menu items). If I take out the YUI adapter and use the ext-base, it works fine.