Procházet zdrojové kódy

Merge pull request #2912 from summeragain/scroll-fix

Fixes #2908: Dropdown cause scrollbar
Kevin Brown před 10 roky
rodič
revize
6a5127ac0f

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

@@ -3176,7 +3176,8 @@ define('select2/dropdown/attachBody',[
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));

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

@@ -3176,7 +3176,8 @@ define('select2/dropdown/attachBody',[
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));

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

@@ -12711,7 +12711,8 @@ define('select2/dropdown/attachBody',[
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/js/select2.full.min.js


+ 2 - 1
dist/js/select2.js

@@ -3604,7 +3604,8 @@ define('select2/dropdown/attachBody',[
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/js/select2.min.js


+ 2 - 1
src/js/select2/dropdown/attachBody.js

@@ -47,7 +47,8 @@ define([
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů