Skip to content

Commit

Permalink
Merge pull request selectize#1286 from 5818959/master
Browse files Browse the repository at this point in the history
Fixes dropdown width if control width not integer.
  • Loading branch information
brianreavis authored Jun 7, 2017
2 parents 7a006b8 + 5346601 commit d868456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,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
});
Expand Down

0 comments on commit d868456

Please sign in to comment.