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

[Feature request]: Window offset #90

Open
szulcus opened this issue May 31, 2023 · 0 comments
Open

[Feature request]: Window offset #90

szulcus opened this issue May 31, 2023 · 0 comments

Comments

@szulcus
Copy link

szulcus commented May 31, 2023

I really like the protection so that the popover does not go out of the window.
image

I think it would also be a nice idea to allow an element not to go outside of a specific container. I think we have 2 potential solutions to this problem:

  • prop windowOffset, which would define the safe distance from the window
  • prop container, which would specify which container the popover can't go outside of
  • prop containerOffset working in a similar way as windowOffset.

If you decide to support a custom container, it may be a window by default (then the first suggestion would be unnecessary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant