@@ -29,8 +29,7 @@ $.widget( "ui.selectmenu", {
2929 at : "left bottom" ,
3030 collision : "none"
3131 } ,
32- widthButton : null ,
33- widthMenu : null ,
32+ width : null ,
3433
3534 // callbacks
3635 change : null ,
@@ -94,7 +93,7 @@ $.widget( "ui.selectmenu", {
9493 . appendTo ( this . button ) ;
9594
9695 this . _setText ( this . buttonText , this . element . find ( "option:selected" ) . text ( ) ) ;
97- this . _setOption ( "widthButton " , this . options . widthButton ) ;
96+ this . _setOption ( "width " , this . options . width ) ;
9897
9998 this . _on ( this . button , this . _buttonEvents ) ;
10099 this . _hoverable ( this . button ) ;
@@ -442,7 +441,7 @@ $.widget( "ui.selectmenu", {
442441 this . button . attr ( "tabindex" , 0 ) ;
443442 }
444443 }
445- if ( key === "widthButton " ) {
444+ if ( key === "width " ) {
446445 if ( ! value ) {
447446 value = this . element . outerWidth ( ) ;
448447 }
@@ -480,7 +479,7 @@ $.widget( "ui.selectmenu", {
480479 } ,
481480
482481 _resizeMenu : function ( ) {
483- this . menu . outerWidth ( this . options . widthMenu || Math . max (
482+ this . menu . outerWidth ( Math . max (
484483 this . button . outerWidth ( ) ,
485484 this . menu . width ( "" ) . outerWidth ( )
486485 ) ) ;
0 commit comments