浏览代码

Fixed sizing of the new select element

Kevin Brown 10 年之前
父节点
当前提交
845f245e1c

+ 1 - 1
dist/js/select2.amd.full.js

@@ -834,7 +834,7 @@ define('select2/core',[
 
     $container.insertAfter(this.$element);
 
-    $container.width($element.width());
+    $container.width($element.outerWidth(false));
 
     this.selection = new this.options.selectionAdapter($element, this.options);
 

+ 1 - 1
dist/js/select2.amd.js

@@ -834,7 +834,7 @@ define('select2/core',[
 
     $container.insertAfter(this.$element);
 
-    $container.width($element.width());
+    $container.width($element.outerWidth(false));
 
     this.selection = new this.options.selectionAdapter($element, this.options);
 

+ 1 - 1
dist/js/select2.full.js

@@ -10372,7 +10372,7 @@ define('select2/core',[
 
     $container.insertAfter(this.$element);
 
-    $container.width($element.width());
+    $container.width($element.outerWidth(false));
 
     this.selection = new this.options.selectionAdapter($element, this.options);
 

文件差异内容过多而无法显示
+ 0 - 0
dist/js/select2.full.min.js


+ 1 - 1
dist/js/select2.js

@@ -1263,7 +1263,7 @@ define('select2/core',[
 
     $container.insertAfter(this.$element);
 
-    $container.width($element.width());
+    $container.width($element.outerWidth(false));
 
     this.selection = new this.options.selectionAdapter($element, this.options);
 

文件差异内容过多而无法显示
+ 0 - 0
dist/js/select2.min.js


+ 1 - 1
src/js/select2/core.js

@@ -23,7 +23,7 @@ define([
 
     $container.insertAfter(this.$element);
 
-    $container.width($element.width());
+    $container.width($element.outerWidth(false));
 
     this.selection = new this.options.selectionAdapter($element, this.options);
 

部分文件因为文件数量过多而无法显示