2
0
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:
martinlechner1 2014-02-13 12:11:05 +01:00
parent 3bab507eac
commit 1daf24aae1

View File

@ -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') {