mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Remove redundant narrow-threshold calculation
This is done upstream in OOUI. Change-Id: Icc0e535f9d1113a14d2c1cc275efebbc98e3a38c
This commit is contained in:
parent
6f8e0d9699
commit
b1b6f9836e
|
@ -1024,9 +1024,6 @@ ve.init.mw.DesktopArticleTarget.prototype.setupSkinTabs = function () {
|
|||
*/
|
||||
ve.init.mw.DesktopArticleTarget.prototype.attachToolbarSaveButton = function () {
|
||||
this.toolbar.$actions.append( this.toolbarSaveButton.$element );
|
||||
// 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