mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: add 1px to menu width to avoid wrapping long text in IE10
This commit is contained in:
parent
32b0936e40
commit
a9b18bcfec
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -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
|
||||
) );
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user