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

Commit cf6124e

Browse files
committed
Fix old IE version bug
Use `.outerHeight` instead of low-level `.getBoundingClientRect`. See [comment](#499 (comment)) on #499
1 parent ace3ee3 commit cf6124e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ $.TokenList = function (input, url_or_data, settings) {
796796
dropdown
797797
.css({
798798
position: "absolute",
799-
top: token_list.offset().top + token_list[0].getBoundingClientRect().height,
799+
top: token_list.offset().top + token_list.outerHeight(),
800800
left: token_list.offset().left,
801801
width: token_list.width(),
802802
'z-index': $(input).data("settings").zindex

0 commit comments

Comments
 (0)