瀏覽代碼

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);
 

部分文件因文件數量過多而無法顯示