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

Open position not always good #11

Open
Mukatai opened this issue Feb 8, 2021 · 0 comments
Open

Open position not always good #11

Mukatai opened this issue Feb 8, 2021 · 0 comments

Comments

@Mukatai
Copy link

Mukatai commented Feb 8, 2021

Details
What browser were you using: Firefox/Chrome/Edge
What OS were you using:Window 10
Project version you have:V2.0.0

Describe the bug
The up open position is not selected when a part of the color picker block is outside of the windows.

To Reproduce
Steps to reproduce the behavior:
In the codepen exemple, add this style to the button : height : 100px. Resize the window so that the color picker exceeds.

Screenshots (Optional)
If applicable, add screenshots to help explain your problem.
image

Additional context (Optional)
For correct this bug replace in setup.js the line 61

if (top + picker.offsetHeight > window.innerHeight)

to

if (top + picker.offsetHeight + this.offsetHeight > window.innerHeight)

Thanks for your work !

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