Skip to content

Commit 2a68f0f

Browse files
author
Tomas Kirda
authored
Merge pull request #626 from a-khajelou/patch-1
the custom parent bug for positioning
2 parents c037516 + 8ff0ac2 commit 2a68f0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@
336336

337337
parentOffsetDiff = $container.offsetParent().offset();
338338
styles.top -= parentOffsetDiff.top;
339+
styles.top += containerParent.scrollTop;
339340
styles.left -= parentOffsetDiff.left;
340341

341342
if (!that.visible){

0 commit comments

Comments
 (0)