Proper hoverhelp grey area fix
This commit is contained in:
parent
0f3505a46f
commit
886677c8ce
2 changed files with 12 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
.wg-hoverhelp {
|
.wg-hoverhelp {
|
||||||
visibility: collapse;
|
|
||||||
display: none;
|
display: none;
|
||||||
background-color: #e6ecff;
|
background-color: #e6ecff;
|
||||||
border: 1px solid #003399;
|
border: 1px solid #003399;
|
||||||
|
|
@ -8,13 +7,17 @@
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
z-index: 1000;
|
|
||||||
width: 300px;
|
width: 300px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wg-hoverhelp.yui-tt {
|
.wg-hoverhelp.yui-tt {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wg-hoverhelp-visible {
|
||||||
|
z-index: 100 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,12 @@ YAHOO.util.Event.onDOMReady(function () {
|
||||||
autodismissdelay: 1000000,
|
autodismissdelay: 1000000,
|
||||||
context: tips[i].parentNode
|
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');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue