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
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -114,10 +114,10 @@ $.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
|
||||
// wrap menu
|
||||
this.menuWrap = $( '<div />' )
|
||||
.addClass( 'ui-selectmenu-menu' )
|
||||
.width( setWidth )
|
||||
|
Loading…
Reference in New Issue
Block a user