Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit b4425ac

Browse files
committed
Merge pull request #499 from 2is10/dropdown_position
using the token list's offset height (border-box height)...
2 parents 7a039f2 + 664ee46 commit b4425ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jquery.tokeninput.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,9 @@ $.TokenList = function (input, url_or_data, settings) {
785785
dropdown
786786
.css({
787787
position: "absolute",
788-
top: $(token_list).offset().top + $(token_list).height(),
789-
left: $(token_list).offset().left,
790-
width: $(token_list).width(),
788+
top: token_list.offset().top + token_list[0].getBoundingClientRect().height,
789+
left: token_list.offset().left,
790+
width: token_list.width(),
791791
'z-index': $(input).data("settings").zindex
792792
})
793793
.show();

0 commit comments

Comments
 (0)