]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: update button width on refresh
authorFelix Nagel <info@felixnagel.com>
Thu, 5 Dec 2013 21:11:28 +0000 (22:11 +0100)
committerFelix Nagel <info@felixnagel.com>
Sat, 7 Dec 2013 18:10:50 +0000 (19:10 +0100)
ui/jquery.ui.selectmenu.js

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