Tooltip together with JQuery popup - z-index fix

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Per Englund on 21st April 2016
There is a "bug" in the RGraph.common.tooltips.js, if used in a JQuery popup(blockUI), the tooltip shows "under" the popup.

There is an easy fix in RGraph.common.tooltips.js.
Set tooltipObj.style.zIndex = <a high number>;
somewhere after row 30.


Thanks
Per
Posted by Richard on 21st April 2016
Hi,

It doesn't matter what I set the z-index to - someone will use a higher one when in a situation like yours.

There is an easy solution though - and that's to create a custom CSS class like this:

.RGraph_tooltip {
     z-index: 999;
}

Though I might add the ability to set CSS properties in the configuration that are applied to the tooltip.




Richard

Add a reply




« Back to message list