Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit d7d49b4

Browse files
committed
Fix width calculation to allow for different padding
Signed-off-by: Chris Jackson <[email protected]>
1 parent 7f30bcd commit d7d49b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ uis.controller('uiSelectCtrl',
442442
if (containerWidth === 0) {
443443
return false;
444444
}
445-
var inputWidth = containerWidth - input.offsetLeft - 10;
445+
var inputWidth = containerWidth - input.offsetLeft - ctrl.searchInput.parent()[0].offsetLeft - 5;;
446446
if (inputWidth < 50) inputWidth = containerWidth;
447447
ctrl.searchInput.css('width', inputWidth+'px');
448448
return true;

0 commit comments

Comments
 (0)