Skip to content

Commit a9b18bc

Browse files
committed
Selectmenu: add 1px to menu width to avoid wrapping long text in IE10
1 parent 32b0936 commit a9b18bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ $.widget( "ui.selectmenu", {
492492
_resizeMenu: function() {
493493
this.menu.outerWidth( Math.max(
494494
this.button.outerWidth(),
495-
this.menu.width( "" ).outerWidth()
495+
// IE10 wraps long text (possibly a rounding bug)
496+
// so we add 1px to avoid the wrapping
497+
this.menu.width( "" ).outerWidth() + 1
496498
) );
497499
},
498500

0 commit comments

Comments
 (0)