Selectmenu: fixed IE width calc

This commit is contained in:
Felix Nagel 2011-10-17 22:04:14 +02:00
parent df68860a61
commit 31ccf10698

View File

@ -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