Skip to content
Permalink
Browse files

Selectmenu: fixed IE width calc

  • Loading branch information...
fnagel committed Oct 17, 2011
1 parent df68860 commit 31ccf10698c622d1912860bed838259469d65983
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.selectmenu.js
@@ -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 )

0 comments on commit 31ccf10

Please sign in to comment.
You can’t perform that action at this time.