datastorm-open / visNetwork

R package, using vis.js library for network visualization
Other
545 stars 125 forks source link

set z-index of the tooltip container and provide node title class #426

Open vspinu opened 3 years ago

vspinu commented 3 years ago

Currently the node title tooltip is shown under other compnents on the page. For example on the page with plotly and shiny componets tooltip is shown underneath both: image

Could you please endow the tooltip container, and the inner title div with predefined classes so that it could be easily styled? Currently: image

I think it would also make sense to hard code z-index of the tooltip to a high value.

For now my workaround is to rely on relative position and style the sibling of the network which turned to be the tooltip div:

.vis-network + div {
    z-index: 99999;
}