-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
support very long dropdown menu #1989
Comments
Would amend this to accommodate any egregiously long menu entries. .dropdown-menu {
max-height: 500px;
overflow-y: auto;
overflow-x: hidden;
} |
First, don't let dropdowns get that long :). Second, I don't want to add any overflow because that crops the caret we add to navbar dropdowns. |
@markdotto Sometimes we really need it, How would you represent, for example, this list: We do have a "View All" page, but to find quickly a gift card, we have those 2 custom dropdown lists that I'm now swapping for BootStrap Framework. a simple draft: All ideas are greatly appreciated. |
go look up 'choosen'. |
Or select2 (http://ivaynberg.github.com/select2/) Thanks, On Thu, Oct 4, 2012 at 3:14 PM, thezoggy notifications@github.com wrote:
|
I resolved the very long dropdown issue by using Bootstrap Select (https://github.com/silviomoreto/bootstrap-select) instead. Works perfect for my case. |
I know this is a little late for iatek, but I made a long list work also with: From bootstrap.css: .pre-scrollable {
|
If anyone is still interested in a fix for this. I got it working with a relatively simple and non-intrusive approach using the built-in dropdown-menu with just CSS and an extra dropdown-menu. JFiddle example and blog entry. It offers the following benefits:
|
Hey @mdo can you define what is a "very long menu"? I'm visually impaired (tunnel vision and need to zoom window). For me > 10 menu items means I can't see them all. 10 isn't uncommon btw. |
A very long dropdown menu with a search box works perfect, i know others are gonna point towards custom libraries for this but that comes with a lot of bloat unfortunately |
Add
We can make a nicer scroll bar too.
The text was updated successfully, but these errors were encountered: