From 886677c8ce4b232aa7d5e5f50df8f75fecabc627 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Wed, 31 Oct 2007 16:26:02 +0000 Subject: [PATCH] Proper hoverhelp grey area fix --- www/extras/hoverhelp.css | 7 +++++-- www/extras/hoverhelp.js | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/www/extras/hoverhelp.css b/www/extras/hoverhelp.css index 695bd331a..5852df16e 100644 --- a/www/extras/hoverhelp.css +++ b/www/extras/hoverhelp.css @@ -1,5 +1,4 @@ .wg-hoverhelp { - visibility: collapse; display: none; background-color: #e6ecff; border: 1px solid #003399; @@ -8,13 +7,17 @@ font-size: 11px; font-weight: normal; padding: 3px; - z-index: 1000; width: 300px; top: 0px; left: 0px; + z-index: -1; } .wg-hoverhelp.yui-tt { display: block; } +.wg-hoverhelp-visible { + z-index: 100 !important; +} + diff --git a/www/extras/hoverhelp.js b/www/extras/hoverhelp.js index 64de7d138..be8a446bf 100644 --- a/www/extras/hoverhelp.js +++ b/www/extras/hoverhelp.js @@ -5,7 +5,13 @@ YAHOO.util.Event.onDOMReady(function () { var myTip = new YAHOO.widget.Tooltip(tips[i], { autodismissdelay: 1000000, context: tips[i].parentNode - }); + }); + myTip.beforeShowEvent.subscribe(function() { + YAHOO.util.Dom.addClass(this.element, 'wg-hoverhelp-visible'); + }); + myTip.beforeHideEvent.subscribe(function() { + YAHOO.util.Dom.removeClass(this.element, 'wg-hoverhelp-visible'); + }); } });