ivaynberg/select2 — pull request #237 by KevM (2012-07-18 15:38:45+00:00)
Title: Container receives width style only when hidden input has one or via opt width

This pull request will limit the container div's width style to only be propagated from the input element in the following scenarios in this order:
* There is a width parameter on the options object
* There is a width style on the hidden input
* The css width of the element is only propagated when the option.width is set to copy.

If none of these scenarios are met the container div's width will be set by your regular old CSS rules currently in play. Cool thing is select2 will propagate the css classnames from the input element to the container so you will likely get whatever width was styled for the input element unless the CSS selectivity is different for the container div.

Cavet: In testing against my current usages of select2 I see the widths get set correctly. Though I am seeing breaking AJAX behavior and weird layouts issues. After reverting to master I was still seeing these problems so I am pretty confident I did not introduce them.