From 53466014a7acc4d1fa7dcb23b653189464461a82 Mon Sep 17 00:00:00 2001 From: Sergey S <5818959@gmail.com> Date: Tue, 16 May 2017 11:06:06 +0300 Subject: [PATCH] Fixes dropdown width if control width not integer. --- src/selectize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selectize.js b/src/selectize.js index 31c76ca7d..f8b7fffb7 100644 --- a/src/selectize.js +++ b/src/selectize.js @@ -1780,7 +1780,7 @@ $.extend(Selectize.prototype, { offset.top += $control.outerHeight(true); this.$dropdown.css({ - width : $control.outerWidth(), + width : $control[0].getBoundingClientRect().width, top : offset.top, left : offset.left });