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

View File

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