react-component / tooltip

React Tooltip
http://react-component.github.io/tooltip/
MIT License
922 stars 188 forks source link

Undocumented `alwaysByViewport` option #363

Open GeoMarkou opened 2 years ago

GeoMarkou commented 2 years ago

In the align.overflow configuration there is an alwaysByViewport option offered by dom-align:

if alwaysByViewport is true, the it will adjust if node is not inside viewport

This solved an issue I was having with a large page that scrolled horizontally and vertically, the tooltip would disappear off the side of the page. It would be great if this was documented somewhere.

karpo518 commented 5 months ago

When the trigger button is located near the border of the browser window, then the popup falls outside the window and creates a scroll. I was unable to resolve this issue using the option adalwaysByViewport, adjustX or adjustY