From a9b18bcfec46bdb24cf79fa480f6bcab55c27e6e Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 26 Nov 2013 00:56:50 +0100 Subject: [PATCH] Selectmenu: add 1px to menu width to avoid wrapping long text in IE10 --- ui/jquery.ui.selectmenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) ); }, -- 2.39.5