mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-29 08:14:06 +00:00
custom pinTo element
This commit is contained in:
parent
702bc0e9c3
commit
cb69351deb
@ -59,6 +59,7 @@
|
||||
lookup: null,
|
||||
onSelect: null,
|
||||
width: 'auto',
|
||||
pinTo: el,
|
||||
minChars: 1,
|
||||
maxHeight: 300,
|
||||
deferRequestBy: 0,
|
||||
@ -253,7 +254,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
offset = that.el.offset();
|
||||
offset = $(that.options.pinTo).offset();
|
||||
|
||||
styles = {
|
||||
top: (offset.top + that.el.outerHeight()) + 'px',
|
||||
|
Loading…
Reference in New Issue
Block a user