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

Truncate when no viable match #24

Open
julianjelfs opened this issue Dec 20, 2023 · 1 comment
Open

Truncate when no viable match #24

julianjelfs opened this issue Dec 20, 2023 · 1 comment
Labels
feature request New feature or request

Comments

@julianjelfs
Copy link

It would be great if this could be extended such that in the case of failure to find any fit we could (optionally) discover the position-variant fit that has the smallest overflow and use that position but reduce the height / width of the popper so that it still fits on the screen.

Seems like in the case of a total miss, top & left of 0,0 is almost never what you want to happen.

@simonwep simonwep added the feature request New feature or request label Jan 6, 2024
@simonwep
Copy link
Owner

simonwep commented Jan 6, 2024

Good point, since this is very much an edge-case... did this happen in your case? We could also think about an fallback so that you can specify which position should be taken if there is no space (e.g. bottom center on mobile devices since you might rather want to scroll down than left / right)

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

No branches or pull requests

2 participants