Merge "ve.init.mw.ViewPageTarget: Recalculate toolbar sizes when adding "Save" button"

This commit is contained in:
jenkins-bot 2015-03-10 21:48:06 +00:00 committed by Gerrit Code Review
commit 9249b4a70f

View file

@ -1231,6 +1231,9 @@ ve.init.mw.ViewPageTarget.prototype.attachToolbarSaveButton = function () {
.append( this.toolbarSaveButton.$element );
this.toolbar.$actions.append( $actionTools, $pushButtons );
// Make the toolbar recalculate its sizes for narrow/wide switching.
// This really should not be necessary.
this.toolbar.narrowThreshold = this.toolbar.$group.width() + this.toolbar.$actions.width();
};
/**