mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed IE width calc
This commit is contained in:
parent
df68860a61
commit
31ccf10698
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -114,7 +114,7 @@ $.widget( "ui.selectmenu", {
|
||||
var setWidth = this.button.outerWidth();
|
||||
} else {
|
||||
var text = this.button.find( "span.ui-button-text");
|
||||
var setWidth = text.width() + parseFloat( text.css( "padding-left" ) ) + parseFloat( text.css( "margin-left" ) );
|
||||
var setWidth = text.width() + parseFloat( text.css( "padding-left" ) ) || 0 + parseFloat( text.css( "margin-left" ) || 0 );
|
||||
}
|
||||
|
||||
// wrap menu
|
||||
|
Loading…
Reference in New Issue
Block a user