Skip to content

Commit

Permalink
fix(dropdown): legacyEdge cuts search input
Browse files Browse the repository at this point in the history
The search width sizer was cut in legacy Edge.
  • Loading branch information
lubber-de committed Mar 9, 2022
1 parent b63be9f commit e4f0699
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/definitions/modules/dropdown.js
Expand Up @@ -1869,7 +1869,7 @@ $.fn.dropdown = function(parameters) {
;
$sizer.text(value);
// prevent rounding issues
return Math.ceil( $sizer.width() + 1);
return Math.ceil( $sizer.width() + (module.is.edge() ? 3 : 1));
},
selectionCount: function() {
var
Expand Down Expand Up @@ -3396,6 +3396,9 @@ $.fn.dropdown = function(parameters) {
bubbledIconClick: function(event) {
return $(event.target).closest($icon).length > 0;
},
edge: function() {
return !!window.chrome && !!window.StyleMedia;
},
chrome: function() {
return !!window.chrome && !window.StyleMedia;
},
Expand Down

0 comments on commit e4f0699

Please sign in to comment.