Преглед на файлове

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

Search width inconsistencies in different browsers due to fractional pixels
Igor Vaynberg преди 11 години
родител
ревизия
7d60f619ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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