diff --git a/app/assets/javascripts/discourse/components/autocomplete.js b/app/assets/javascripts/discourse/components/autocomplete.js index 516149ee58d..36e6dc590ac 100644 --- a/app/assets/javascripts/discourse/components/autocomplete.js +++ b/app/assets/javascripts/discourse/components/autocomplete.js @@ -146,13 +146,18 @@ $.fn.autocomplete = function(options) { pos: completeStart, key: options.key }); - vOffset = div.height(); hOffset = 27; } div.css({ left: "-1000px" }); + me.parent().append(div); + + if(!isInput){ + vOffset = div.height(); + } + var mePos = me.position(); var borderTop = parseInt(me.css('border-top-width'), 10) || 0; div.css({