Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Support for Dropup variation #2444

Closed
eranimo opened this issue Jul 11, 2014 · 3 comments
Closed

Support for Dropup variation #2444

eranimo opened this issue Jul 11, 2014 · 3 comments

Comments

@eranimo
Copy link

eranimo commented Jul 11, 2014

I like how the select2 dropdown changes to a "dropup" instead of a dropdown when there is no room at the bottom of the viewport for the dropdown to show. It would be nice if we could support this feature. A dropup style is already included in Bootstrap:

http://getbootstrap.com/components/#btn-dropdowns-dropup

@bsweeney
Copy link

You can manually specify the dropup variant if you follow the dropdown class with the dropup class, e.g.

<div class="dropdown dropup">
  <button class="dropdown-toggle btn" data-toggle="dropdown">
    Click Me <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu" aria-labelledby="selectDropdown">
    <li role="presentation"><a role="menuitem" tabindex="-1">Yo!</a></li>
  </ul>
</div>

But I totally agree, having it automatically choose would be nice.

@bsweeney
Copy link

Looks to be a similar request to #1317.

@pkozlowski-opensource
Copy link
Member

Yes, this is duplicate of #1317

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

No branches or pull requests

3 participants