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

Collision detection #55

Closed
r-flash opened this issue Apr 15, 2015 · 6 comments
Closed

Collision detection #55

r-flash opened this issue Apr 15, 2015 · 6 comments
Labels

Comments

@r-flash
Copy link

r-flash commented Apr 15, 2015

When the selectbox is on the bottom of an element with overflow: hidden;, it gets cropped and some of the options are unreachable for the user. Could you provide some way of setting a container element, so that the select box opens above the input in case it would colide with the containers bottom?

@HemantNegi
Copy link
Owner

Hi,
Can you provide a fiddle for the problem

@r-flash
Copy link
Author

r-flash commented Apr 26, 2015

I'm sorry for the delay. Here is the fiddle https://jsfiddle.net/hd8zwu3q/ .
I realize that I'm explicitly setting overflow hidden, but it would be nice if the plugin could determine if there is enough space above the select, and if so, display it there instead of letting it clip.

@HemantNegi
Copy link
Owner

ok,
will figure out workarounds for the problem.

Thanks

@supermarcos
Copy link

Any luck with this issue?
Thanks

@michaelalhilly
Copy link

The only way that comes to mind is creating a duplicate select element outside the container and hiding it offcanvas and displaying it in place when the original select is clicked. You also have to update the original select value to the duplicates value.

@HemantNegi
Copy link
Owner

Not easy to do this, However by this example http://jsfiddle.net/5m3RE/1/
i am able to make it usable inside a container having overflow: hidden

see last example in
https://github.com/HemantNegi/jquery.sumoselect/blob/master/select_responsive.html

Choosen is also suffering from this issue see: harvesthq/chosen#86

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

No branches or pull requests

4 participants