Selectmenu: update button width on refresh

This commit is contained in:
Felix Nagel 2013-12-05 22:11:28 +01:00
parent 327bcbae8c
commit 06bcd8eb62

View File

@ -164,6 +164,7 @@ $.widget( "ui.selectmenu", {
refresh: function() { refresh: function() {
this._refreshMenu(); this._refreshMenu();
this._setText( this.buttonText, this._getSelectedItem().text() ); this._setText( this.buttonText, this._getSelectedItem().text() );
this._setOption( "width", this.options.width );
}, },
_refreshMenu: function() { _refreshMenu: function() {