Merge pull request #2912 from summeragain/scroll-fix
Fixes #2908: Dropdown cause scrollbar
This commit is contained in:
commit
6a5127ac0f
3
dist/js/select2.amd.full.js
vendored
3
dist/js/select2.amd.full.js
vendored
@ -3176,7 +3176,8 @@ define('select2/dropdown/attachBody',[
|
|||||||
$dropdown.addClass('select2-container--open');
|
$dropdown.addClass('select2-container--open');
|
||||||
|
|
||||||
$dropdown.css({
|
$dropdown.css({
|
||||||
position: 'absolute'
|
position: 'absolute',
|
||||||
|
top: -999999
|
||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.width($container.outerWidth(false));
|
$dropdown.width($container.outerWidth(false));
|
||||||
|
3
dist/js/select2.amd.js
vendored
3
dist/js/select2.amd.js
vendored
@ -3176,7 +3176,8 @@ define('select2/dropdown/attachBody',[
|
|||||||
$dropdown.addClass('select2-container--open');
|
$dropdown.addClass('select2-container--open');
|
||||||
|
|
||||||
$dropdown.css({
|
$dropdown.css({
|
||||||
position: 'absolute'
|
position: 'absolute',
|
||||||
|
top: -999999
|
||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.width($container.outerWidth(false));
|
$dropdown.width($container.outerWidth(false));
|
||||||
|
3
dist/js/select2.full.js
vendored
3
dist/js/select2.full.js
vendored
@ -12711,7 +12711,8 @@ define('select2/dropdown/attachBody',[
|
|||||||
$dropdown.addClass('select2-container--open');
|
$dropdown.addClass('select2-container--open');
|
||||||
|
|
||||||
$dropdown.css({
|
$dropdown.css({
|
||||||
position: 'absolute'
|
position: 'absolute',
|
||||||
|
top: -999999
|
||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.width($container.outerWidth(false));
|
$dropdown.width($container.outerWidth(false));
|
||||||
|
2
dist/js/select2.full.min.js
vendored
2
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
3
dist/js/select2.js
vendored
3
dist/js/select2.js
vendored
@ -3604,7 +3604,8 @@ define('select2/dropdown/attachBody',[
|
|||||||
$dropdown.addClass('select2-container--open');
|
$dropdown.addClass('select2-container--open');
|
||||||
|
|
||||||
$dropdown.css({
|
$dropdown.css({
|
||||||
position: 'absolute'
|
position: 'absolute',
|
||||||
|
top: -999999
|
||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.width($container.outerWidth(false));
|
$dropdown.width($container.outerWidth(false));
|
||||||
|
2
dist/js/select2.min.js
vendored
2
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
3
src/js/select2/dropdown/attachBody.js
vendored
3
src/js/select2/dropdown/attachBody.js
vendored
@ -47,7 +47,8 @@ define([
|
|||||||
$dropdown.addClass('select2-container--open');
|
$dropdown.addClass('select2-container--open');
|
||||||
|
|
||||||
$dropdown.css({
|
$dropdown.css({
|
||||||
position: 'absolute'
|
position: 'absolute',
|
||||||
|
top: -999999
|
||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.width($container.outerWidth(false));
|
$dropdown.width($container.outerWidth(false));
|
||||||
|
Loading…
Reference in New Issue
Block a user