Explorar o código

Merge pull request #1211 from jhinch/pixel-rounding-problems

Search width inconsistencies in different browsers due to fractional pixels
Igor Vaynberg %!s(int64=11) %!d(string=hai) anos
pai
achega
7d60f619ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2923,7 +2923,7 @@ the specific language governing permissions and limitations under the Apache Lic
               searchWidth = minimumWidth;
             }
 
-            this.search.width(searchWidth);
+            this.search.width(Math.floor(searchWidth));
         },
 
         // multi