Parcourir la source

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

Search width inconsistencies in different browsers due to fractional pixels
Igor Vaynberg il y a 11 ans
Parent
commit
7d60f619ce
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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