Bootstrap-select: Forcing it to always drop up

Created on 3 Jun 2015  Â·  10Comments  Â·  Source: snapappointments/bootstrap-select

How do I make the dropdown always drop up.

I have set the class to "dropup" but it still drops down - and so does the example on the document page!

The screen I am on has "overflow:auto" which may be confusing it, but there is plenty of space above, but it just keeps dropping down.

The documentation is rather confusing on this point.

_"checks to see which has more room, above or below. If the dropup has enough room to fully open normally, but there is more room above, the dropup still opens normally. Otherwise, it becomes a dropup. If dropupAuto is set to false, dropups must be called manually."_

What does it mean ". . . . dropups must be called _manually_"

Most helpful comment

Set dropupAuto to false. "dropups must be called manually" means that you must apply the dropup class yourself.

All 10 comments

Set dropupAuto to false. "dropups must be called manually" means that you must apply the dropup class yourself.

Thanks for the prompt reply.

My <select> has the <dropup> class in the markup

Can you maybe change the demo on the document page to mimic this behavior and show us the JQuery or whatever you use to apply the <dropup> class "manually" because your "dropup" there actually drops down just like mine.

So, setting dropupAuto (or data-dropup-auto) to false and applying the dropup class isn't working for you? That part of the docs is showcasing the dropupAuto feature, but I can see how that might be confusing. The documentation is in major need of an overhaul.

Hi

No it isn’t.

No matter what I do, it keeps dropping _down_

Look at _your_ demo:

I am getting the same result.

Regards

Rick Jordan

_From:_ caseyjhol [mailto:[email protected]]
_Sent:_ 03 June 2015 07:15 PM
_To:_ silviomoreto/bootstrap-select
_Cc:_ Furburger
_Subject:_ Re: [bootstrap-select] Forcing it to always drop up (#1050)

So, setting dropupAuto (or data-dropup-auto) to false and applying the
dropup class isn't working for you? That part of the docs is showcasing the
dropupAuto feature, but I can see how that might be confusing. The
documentation is in major need of an overhaul.

—
Reply to this email directly or view it on GitHub
https://github.com/silviomoreto/bootstrap-select/issues/1050#issuecomment-108528875
.[image: Image removed by sender.]

In the demo in the documentation, dropupAuto is not set to false - it is set to true, and it appears to be functioning properly. Applying the dropup class only matters if dropupAuto is set to false.

Hi

Thanks once again for the support – it is much appreciated.

I am able to replicate this for you and I think I have identified the
problem.

Here are 2 almost identical