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

Commit 26e18ae

Browse files
committed
Fix width calculation to allow for different padding
1 parent 948d383 commit 26e18ae

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
@@ -344,7 +344,7 @@ uis.controller('uiSelectCtrl',
344344
if (containerWidth === 0) {
345345
return false;
346346
}
347-
var inputWidth = containerWidth - input.offsetLeft - 10;
347+
var inputWidth = containerWidth - input.offsetLeft - ctrl.searchInput.parent()[0].offsetLeft - 5;
348348
if (inputWidth < 50) inputWidth = containerWidth;
349349
ctrl.searchInput.css('width', inputWidth+'px');
350350
return true;

0 commit comments

Comments
 (0)