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 e572acf commit b1b1275Copy full SHA for b1b1275
src/jquery.autocomplete.js
@@ -91,7 +91,8 @@
91
showNoSuggestionNotice: false,
92
noSuggestionNotice: 'No results',
93
orientation: 'bottom',
94
- forceFixPosition: false
+ forceFixPosition: false,
95
+ positionOffset: [0, 0]
96
};
97
98
// Shared variables:
@@ -295,7 +296,8 @@
295
296
containerHeight = $container.outerHeight(),
297
height = that.el.outerHeight(),
298
offset = that.el.offset(),
- styles = { 'top': offset.top, 'left': offset.left };
299
+ styles = { 'top': offset.top + that.options.positionOffset[1],
300
+ 'left': offset.left + that.options.positionOffset[0] };
301
302
if (orientation === 'auto') {
303
var viewPortHeight = $(window).height(),
0 commit comments