ソースを参照

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

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません