diff --git a/src/uiSelectController.js b/src/uiSelectController.js index ba3e6d56d..77cc4be2e 100644 --- a/src/uiSelectController.js +++ b/src/uiSelectController.js @@ -442,7 +442,7 @@ uis.controller('uiSelectCtrl', if (containerWidth === 0) { return false; } - var inputWidth = containerWidth - input.offsetLeft - 10; + var inputWidth = containerWidth - input.offsetLeft - ctrl.searchInput.parent()[0].offsetLeft - 5;; if (inputWidth < 50) inputWidth = containerWidth; ctrl.searchInput.css('width', inputWidth+'px'); return true;