From c673916e82fc523940a85e5ef9b7fe28de18f22a Mon Sep 17 00:00:00 2001 From: Sunil Kandakatla Date: Thu, 19 Apr 2018 18:43:04 +0530 Subject: [PATCH] Input box for ui-select multiple ALWAYS forcing text entry at new line #1980 --- src/uiSelectController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uiSelectController.js b/src/uiSelectController.js index 0929265e4..dd6eb3246 100644 --- a/src/uiSelectController.js +++ b/src/uiSelectController.js @@ -546,7 +546,7 @@ uis.controller('uiSelectCtrl', if (containerWidth === 0) { return false; } - var inputWidth = containerWidth - input.offsetLeft; + var inputWidth = containerWidth - input.offsetLeft - 10; if (inputWidth < 50) inputWidth = containerWidth; ctrl.searchInput.css('width', inputWidth+'px'); return true;