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

Commit 755765f

Browse files
committed
Need to explicitly set the width of the select field when it is moved to the body.
1 parent 62655f1 commit 755765f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/uiSelectDirective.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ uis.directive('uiSelect',
405405
element[0].style.position = 'absolute';
406406
element[0].style.left = offset.left + 'px';
407407
element[0].style.top = offset.top + 'px';
408+
element[0].style.width = offset.width + 'px';
408409
}
409410

410411
function resetDropdown() {
@@ -420,6 +421,7 @@ uis.directive('uiSelect',
420421
element[0].style.position = '';
421422
element[0].style.left = '';
422423
element[0].style.top = '';
424+
element[0].style.width = '';
423425
}
424426
}
425427
};

0 commit comments

Comments
 (0)