Преглед изворни кода

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