Code adjustments
This commit is contained in:
parent
6672f556e1
commit
7aa07df0db
@ -93,17 +93,17 @@ multiselect.resize = function(e) {
|
|||||||
newHeight -= (multiselect.position.top + newHeight) - $(document).height() + 2;
|
newHeight -= (multiselect.position.top + newHeight) - $(document).height() + 2;
|
||||||
|
|
||||||
$('#multiselect').css({
|
$('#multiselect').css({
|
||||||
top: multiselect.position.top,
|
top: multiselect.position.top,
|
||||||
bottom: 'inherit',
|
bottom: 'inherit',
|
||||||
height: newHeight
|
height: newHeight
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#multiselect').css({
|
$('#multiselect').css({
|
||||||
top: 'inherit',
|
top: 'inherit',
|
||||||
bottom: multiselect.position.bottom,
|
bottom: multiselect.position.bottom,
|
||||||
height: multiselect.position.top - e.pageY
|
height: multiselect.position.top - e.pageY
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -116,17 +116,17 @@ multiselect.resize = function(e) {
|
|||||||
newWidth -= (multiselect.position.left + newWidth) - $(document).width() + 2;
|
newWidth -= (multiselect.position.left + newWidth) - $(document).width() + 2;
|
||||||
|
|
||||||
$('#multiselect').css({
|
$('#multiselect').css({
|
||||||
right: 'inherit',
|
right: 'inherit',
|
||||||
left: multiselect.position.left,
|
left: multiselect.position.left,
|
||||||
width: newWidth
|
width: newWidth
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#multiselect').css({
|
$('#multiselect').css({
|
||||||
right: multiselect.position.right,
|
right: multiselect.position.right,
|
||||||
left: 'inherit',
|
left: 'inherit',
|
||||||
width: multiselect.position.left - e.pageX
|
width: multiselect.position.left - e.pageX
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user