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
Disabling Auto-Fit? #41
Comments
That broke the placement altogether. I can't see the color picker at all now. This is probably wiping out its location entirely no? |
Or just set some fixed offsets: var left = e.target.offsetLeft,
top = e.target.offsetTop;
picker.fit([left, top]); |
I tried calling this inside of If I try putting the above code into the Where/when were you thinking the above code would live? |
You can now use |
Circling back to this. I figured it out. Your very first suggestion/example was correct. I wasn't setting a placement element as the third param to the constructor. That's why overriding
|
Is there any way to disable the way the color-picker "auto fits" to the visible screen area?
This is happening in my app and the color picker gets moved to an area that covers up my UI and leaves the user unable to click the necessary buttons to choose a color or close the color picker.
Could I add a PR to pass this as a setting parameter when initiating? Or would this be something easy you could do?
EDIT: I see there's a
fit
hook that gets called when the color picker gets auto fitted, but there doesn't seem to be any easy way to "undo" or cancel the auto fit using that hook.The text was updated successfully, but these errors were encountered: