File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -830,13 +830,13 @@ uis.controller('uiSelectCtrl',
830
830
container = ctrl . $element [ 0 ] ,
831
831
calculateContainerWidth = function ( ) {
832
832
// Return the container width only if the search input is visible
833
- return container . clientWidth * ! ! input . offsetParent ;
833
+ return $ ( container ) . width ( ) * ! ! input . offsetParent
834
834
} ,
835
835
updateIfVisible = function ( containerWidth ) {
836
836
if ( containerWidth === 0 ) {
837
837
return false ;
838
838
}
839
- var inputWidth = containerWidth - input . offsetLeft - ( ctrl . multiple ? 10 : 0 ) ;
839
+ var inputWidth = containerWidth - input . offsetLeft ;
840
840
if ( inputWidth < 50 ) inputWidth = containerWidth ;
841
841
ctrl . searchInput . css ( 'width' , inputWidth + 'px' ) ;
842
842
return true ;
Original file line number Diff line number Diff line change @@ -528,13 +528,13 @@ uis.controller('uiSelectCtrl',
528
528
container = ctrl . $element [ 0 ] ,
529
529
calculateContainerWidth = function ( ) {
530
530
// Return the container width only if the search input is visible
531
- return container . clientWidth * ! ! input . offsetParent ;
531
+ return $ ( container ) . width ( ) * ! ! input . offsetParent ;
532
532
} ,
533
533
updateIfVisible = function ( containerWidth ) {
534
534
if ( containerWidth === 0 ) {
535
535
return false ;
536
536
}
537
- var inputWidth = containerWidth - input . offsetLeft - ( ctrl . multiple ? 10 : 0 ) ;
537
+ var inputWidth = containerWidth - input . offsetLeft ;
538
538
if ( inputWidth < 50 ) inputWidth = containerWidth ;
539
539
ctrl . searchInput . css ( 'width' , inputWidth + 'px' ) ;
540
540
return true ;
You can’t perform that action at this time.
0 commit comments