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

Commit d3d0950

Browse files
committed
Fix input width calculation and avoid unnecesary digest
1 parent fe269ea commit d3d0950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@
298298
container = _searchInput.parent().parent()[0];
299299
_searchInput.css('width','10px');
300300
$timeout(function(){
301-
var newWidth = container.clientWidth - input.offsetLeft;
301+
var newWidth = container.clientWidth - input.offsetLeft - 10;
302302
if(newWidth < 50) newWidth = container.clientWidth;
303303
_searchInput.css('width',newWidth+'px');
304-
});
304+
}, 0, false);
305305
};
306306

307307
var Key = {

0 commit comments

Comments
 (0)