2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

Fixed positioning

This commit is contained in:
martinlechner1 2014-02-13 12:28:32 +01:00
parent 1daf24aae1
commit 05915c51fe

View File

@ -263,7 +263,7 @@
if(!that.options.openOnTop){ if(!that.options.openOnTop){
styles.top = (offset.top + that.el.outerHeight()) + 'px' styles.top = (offset.top + that.el.outerHeight()) + 'px'
}else{ }else{
styles.bottom = ($(document).height() - offset.top) + 'px'; styles.bottom = ($(document.body).height() - offset.top) + 'px';
} }
if (that.options.width === 'auto') { if (that.options.width === 'auto') {