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

Commit 664ee46

Browse files
committed
using the token list's offset height (border-box height) instead of its content height in determining where to position the dropdown
1 parent 233b45e commit 664ee46

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
@@ -783,9 +783,9 @@ $.TokenList = function (input, url_or_data, settings) {
783783
dropdown
784784
.css({
785785
position: "absolute",
786-
top: $(token_list).offset().top + $(token_list).height(),
787-
left: $(token_list).offset().left,
788-
width: $(token_list).width(),
786+
top: token_list.offset().top + token_list[0].getBoundingClientRect().height,
787+
left: token_list.offset().left,
788+
width: token_list.width(),
789789
'z-index': $(input).data("settings").zindex
790790
})
791791
.show();

0 commit comments

Comments
 (0)