ivaynberg/select2 — pull request #2234 by RyanLev (2014-04-02 19:54:36+00:00)
Title: Fix pixel width rounding on responsive container

The dropdown width is set by jQuery's outerWidth, which rounds the
calculated width of the container to an integer. This is problematic
on responsive layouts that rely on percentage widths. The
Element.getBoundingClientRect() will return the width as fraction.

This is a problem because in my responsive layout the dropdown element width was off by 1px from the text input.

I wanted to be sure that the new method returned the same width (padding & border included, margin excluded) : http://jsfiddle.net/Y9mbR/3/

Here's an example of an element with a calculated width that is not an integer: http://jsfiddle.net/EsGQm/1/