ivaynberg/select2 — pull request #210 by Pompiedom (2012-07-13 12:31:09+00:00)
Title: added autoWidth option + jQuery Position

autoWidth adds the option to adapt the dropdown width to its content.
The container still gets its width from the select style/class/inline
width.

jQuery Position is added to let the dropdown flip when browser borders
are detected. The 'old' code only gave option to flip when bottom
collision would occur, with autoWidth added it is also needed to watch
for right browser border detection.