Fix offset top for autocomplete

This commit is contained in:
Steffen van Bergerem 2015-06-22 15:08:16 +02:00
parent 0b6dc320cb
commit c9d67bdb91

View file

@ -704,7 +704,7 @@ $.Autocompleter.Select = function (options, input, select, config) {
var offset = $(input).offset(); var offset = $(input).offset();
element.css({ element.css({
width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(), width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
top: offset.top + input.offsetHeight, top: offset.top + input.offsetHeight - $("nav.navbar").offset().top,
left: offset.left left: offset.left
}).show(); }).show();
if(options.scroll) { if(options.scroll) {