mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-26 06:46:32 +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();
|
||||
|
||||
styles = {
|
||||
top: (offset.top + that.el.outerHeight()) + 'px',
|
||||
left: offset.left + 'px'
|
||||
};
|
||||
|
||||
if(!!that.options.openOnTop){
|
||||
styles.top = $(document).height() - offset.top + 'px';
|
||||
if(!that.options.openOnTop){
|
||||
styles.top = (offset.top + that.el.outerHeight()) + 'px'
|
||||
}else{
|
||||
styles.bottom = ($(document).height() - offset.top) + 'px';
|
||||
}
|
||||
|
||||
if (that.options.width === 'auto') {
|
||||
|
Loading…
Reference in New Issue
Block a user