From: Felix Nagel Date: Mon, 25 Nov 2013 23:56:50 +0000 (+0100) Subject: Selectmenu: add 1px to menu width to avoid wrapping long text in IE10 X-Git-Tag: 1.11.0-beta.1~160^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9b18bcfec46bdb24cf79fa480f6bcab55c27e6e;p=jquery-ui.git Selectmenu: add 1px to menu width to avoid wrapping long text in IE10 --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index ad445386d..c8e2975e4 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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 ) ); },