1

I'm using a bootstrap-3 Split button dropdown that sometimes adds a 'dropup' class when clicked. I think this is because of a container size calculation, but is it a clean way to 'force' it to always do 'dropdown'?

6
  • 1
    That must be part of your code. Bootstrap does no such container calculation for dropdowns, and AFAICT its dropdown.js doesn't mention the dropup class. Commented Aug 11, 2014 at 21:28
  • @cvrebert is right. Dropup must be manually added. Commented Aug 12, 2014 at 6:22
  • But there is a dropup variation here -> getbootstrap.com/components/#btn-dropdowns-dropup Commented Aug 12, 2014 at 7:21
  • @JonBaron Yes, and it's completely manual. If you don't add dropup to the element yourself, it will always be a dropdown and its menu will always open downwards. Commented Aug 12, 2014 at 15:10
  • Post a JS Fiddle with your alleged counterexample. Commented Aug 12, 2014 at 15:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.