Remove redundant narrow-threshold calculation

This is done upstream in OOUI.

Change-Id: Icc0e535f9d1113a14d2c1cc275efebbc98e3a38c
This commit is contained in:
Ed Sanders 2016-11-11 18:54:30 +00:00
parent 6f8e0d9699
commit b1b6f9836e

View file

@ -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();
};
/**