Skip to content
Permalink
Browse files

Selectmenu: add 1px to menu width to avoid wrapping long text in IE10

  • Loading branch information...
fnagel committed Nov 25, 2013
1 parent 32b0936 commit a9b18bcfec46bdb24cf79fa480f6bcab55c27e6e
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.selectmenu.js
@@ -492,7 +492,9 @@ $.widget( "ui.selectmenu", {
_resizeMenu: function() {
this.menu.outerWidth( Math.max(
this.button.outerWidth(),
this.menu.width( "" ).outerWidth()
// IE10 wraps long text (possibly a rounding bug)
// so we add 1px to avoid the wrapping
this.menu.width( "" ).outerWidth() + 1
) );
},

0 comments on commit a9b18bc

Please sign in to comment.
You can’t perform that action at this time.