mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
the custom parent bug for positioning
if you set the appendTo property to another tag instead of body, and if the container is scrollable, there will be a tiny bug for positioning on scrolled container, so if you add this line to the src , it will function well ! :)
This commit is contained in:
parent
59a1293774
commit
8ff0ac2a81
@ -337,6 +337,7 @@
|
||||
|
||||
parentOffsetDiff = $container.offsetParent().offset();
|
||||
styles.top -= parentOffsetDiff.top;
|
||||
styles.top += containerParent.scrollTop;
|
||||
styles.left -= parentOffsetDiff.left;
|
||||
|
||||
if (!that.visible){
|
||||
|
Loading…
Reference in New Issue
Block a user