react-hint
react-hint copied to clipboard
Window edge detection fails
When tooltip shows to top, it do not check, that it's content visible on screen:

Probably fix:
if (!isHorizontal) {
// При вертикальном отображении left и right показывают - помещается ли содержимое по горизонатали в границах экрана
directions.top = directions.top && directions.left && directions.right;
directions.bottom = directions.top && directions.left && directions.right;
}
