View Full Version : Keep QuickTip displayed while mouse is over it
I have my QuickTips working perfectly except for one issue.
Some of my quicktips actually have interactive content (For example, a "More Help" button).
My current solution is setting the hideDelay to about 1000 so that the user has time to move the mouse and click the button.
I'd rather the QuickTip stay open as long as the mouse is over the original element OR the quicktip element itself.
Any ideas?
devnull
16 Aug 2007, 10:53 AM
check out the quicktips config option 'autoHide'.
para
16 Aug 2007, 11:09 AM
I can't believe I didn't see that. I've been reading those configs for an hour.
It's not quite perfect, but it's good enough. That config makes it not monitor the mouseout event, which is not exactly like what I want, but it's better than what I currently have.
djMax
24 Aug 2007, 5:31 PM
I have the same situation as you did, and like you, autoHide isn't really what I want. I want hide to "wait" if there's been a mouseenter on the quicktip itself. Given that the QuickTip functions are private, I can't even override to fix this. Is there any way to get QT to do what we want?
djMax
24 Aug 2007, 6:30 PM
I think there's actually a really easy solution to this... In onOver in QuickTips.js, it checks to see if the event is for the target element, and cancels any deferred hide if so. If we ALSO cancel when the target is a child of the QuickTip element, everything works (line 29 for me):
if (ce && (t == ce.el || el.contains(t))){
or if you want it to be optional:
if (ce && (t == ce.el || (ce.showOnTipHover && el.contains(t)))){
I'm really loathe to modify my own copy of ext, so might this be something to go into the next release?
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.