1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Merge pull request #2912 from summeragain/scroll-fix

Fixes #2908: Dropdown cause scrollbar
This commit is contained in:
Kevin Brown 2015-01-11 15:41:13 -05:00
commit 6a5127ac0f
7 changed files with 12 additions and 7 deletions

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long

3
dist/js/select2.js vendored
View File

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

File diff suppressed because one or more lines are too long

View File

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