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

No control about overflow #4

Closed
MikeElahi opened this issue Sep 22, 2018 · 1 comment
Closed

No control about overflow #4

MikeElahi opened this issue Sep 22, 2018 · 1 comment

Comments

@MikeElahi
Copy link

I faced this problem in production and I tried it with the online demo provided in the readme and I'm certain this is the theme's problem. (as the problem wasn't there when I disabled the theme).
Unlike the select2 default theme itself, this theme does not control overflow, try increasing number of your options in the example to over 20.
This will even override the page size and cause the whole page to overflow.
image

@jlucaspains
Copy link

When comparing the original css for select2 and the one for this theme I found the following missing:

.select2-results__options { max-height: 200px; overflow-y: auto; }

Add it back and the behavior will be the same.

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

2 participants