Explorar o código

Fixed sizing of the new select element

Kevin Brown %!s(int64=10) %!d(string=hai) anos
pai
achega
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);
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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);
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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);
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio