mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-01 17:23:59 +00:00
Fixed a bug introduced in refactoring
This commit is contained in:
parent
3bab507eac
commit
1daf24aae1
@ -258,12 +258,12 @@
|
|||||||
offset = that.el.offset();
|
offset = that.el.offset();
|
||||||
|
|
||||||
styles = {
|
styles = {
|
||||||
top: (offset.top + that.el.outerHeight()) + 'px',
|
|
||||||
left: offset.left + 'px'
|
left: offset.left + 'px'
|
||||||
};
|
};
|
||||||
|
if(!that.options.openOnTop){
|
||||||
if(!!that.options.openOnTop){
|
styles.top = (offset.top + that.el.outerHeight()) + 'px'
|
||||||
styles.top = $(document).height() - offset.top + 'px';
|
}else{
|
||||||
|
styles.bottom = ($(document).height() - offset.top) + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (that.options.width === 'auto') {
|
if (that.options.width === 'auto') {
|
||||||
|
Loading…
Reference in New Issue
Block a user