Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position tooltip regarding window boundaries #50

Open
untemps opened this issue Jul 7, 2022 · 0 comments
Open

Position tooltip regarding window boundaries #50

untemps opened this issue Jul 7, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@untemps
Copy link
Owner

untemps commented Jul 7, 2022

The position of the tooltip is defined by the developer and is fixed wherever is the target inside the screen so far.
It would be nice to keep that behaviour by default and allow to automatically re-position the tooltip if it is not visible because of the parent element or the screen boundaries.
For example, if the position is set to right and the target is stuck against the window right boundary, we'd like to change the position to left.
The convention might be to re-position the tooltip to the opposite side.
I can't see any usecase for having a prop to force the position even if the tooltip is not visible.

@untemps untemps added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant