harvesthq/chosen — pull request #1644 by dcwatson (2013-11-07 22:28:50+00:00)
Title: Switch menu to dropup when there is not enough room below

Refs #155 (and countless others). Basically the solution from https://github.com/harvesthq/chosen/issues/155#issuecomment-7467487