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

This commit is contained in:
Felix Nagel 2013-11-26 00:56:50 +01:00
parent 32b0936e40
commit a9b18bcfec

View File

@ -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
) );
},