We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a1293 commit a6dfb9eCopy full SHA for a6dfb9e
src/jquery.autocomplete.js
@@ -122,7 +122,8 @@
122
showNoSuggestionNotice: false,
123
noSuggestionNotice: 'No results',
124
orientation: 'bottom',
125
- forceFixPosition: false
+ forceFixPosition: false,
126
+ positionOffset: [0, 0]
127
};
128
129
function _lookupFilter(suggestion, originalQuery, queryLowerCase) {
@@ -308,7 +309,8 @@
308
309
containerHeight = $container.outerHeight(),
310
height = that.el.outerHeight(),
311
offset = that.el.offset(),
- styles = { 'top': offset.top, 'left': offset.left };
312
+ styles = { 'top': offset.top + that.options.positionOffset[1],
313
+ 'left': offset.left + that.options.positionOffset[0] };
314
315
if (orientation === 'auto') {
316
var viewPortHeight = $(window).height(),
0 commit comments