2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +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:
Arash Khajelou 2017-07-08 20:49:58 +04:30 committed by GitHub
parent 59a1293774
commit 8ff0ac2a81

View File

@ -337,6 +337,7 @@
parentOffsetDiff = $container.offsetParent().offset();
styles.top -= parentOffsetDiff.top;
styles.top += containerParent.scrollTop;
styles.left -= parentOffsetDiff.left;
if (!that.visible){