tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

Tooltip is squished when in horizontally scrolling page

Open GeoMarkou opened this issue 3 years ago • 0 comments

In our application we have a very long horizontally scrolling page (week scheduler). Any tooltips that appear after scrolling to the right are squished. Replication:

Go go the example http://react-component.github.io/tooltip/examples/placement.html

In your browser's debugging tools change one of the tooltips to be longer so the squishing is more obvious.

Add this CSS

.example {
    margin-left: 110vw;
}

You can see that once the content is off the screen to the right the tooltip is only as wide as the longest word.

image

GeoMarkou avatar Feb 11 '22 00:02 GeoMarkou