react-hint icon indicating copy to clipboard operation
react-hint copied to clipboard

Window edge detection fails

Open PFight opened this issue 4 years ago • 1 comments

When tooltip shows to top, it do not check, that it's content visible on screen:

image

PFight avatar Sep 30 '21 09:09 PFight

Probably fix:

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

image

PFight avatar Sep 30 '21 09:09 PFight