From 04309f9a9d51c6a191358c0c3cc28c9a0cd086b5 Mon Sep 17 00:00:00 2001 From: BeenaShetty Date: Tue, 28 Apr 2015 16:21:02 +0530 Subject: [PATCH] Dropdown width fixed replaced width() with outerWidth(). As outerWidth included padding and border while computing width but width() dont include padding nor border. --- src/jquery.tokeninput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.tokeninput.js b/src/jquery.tokeninput.js index 4b69d823..bc606e9b 100755 --- a/src/jquery.tokeninput.js +++ b/src/jquery.tokeninput.js @@ -803,7 +803,7 @@ position: "absolute", top: token_list.offset().top + token_list.outerHeight(true), left: token_list.offset().left, - width: token_list.width(), + width: token_list.outerWidth(), 'z-index': $(input).data("settings").zindex }) .show();