mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "ve.init.mw.ViewPageTarget: Recalculate toolbar sizes when adding "Save" button"
This commit is contained in:
commit
9249b4a70f
|
@ -1231,6 +1231,9 @@ ve.init.mw.ViewPageTarget.prototype.attachToolbarSaveButton = function () {
|
||||||
.append( this.toolbarSaveButton.$element );
|
.append( this.toolbarSaveButton.$element );
|
||||||
|
|
||||||
this.toolbar.$actions.append( $actionTools, $pushButtons );
|
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();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue