From 20f876ca693d142d795ef45cc2cc6299a83286c2 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 13 May 2019 12:00:05 +0100 Subject: [PATCH] Fix inheritance of isResizable Bug: T223086 Change-Id: Ib57b9a0173903db438120b94ffa391e734aee614 --- modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js b/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js index 9a7f1c786e..55da4be251 100644 --- a/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js +++ b/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js @@ -304,8 +304,11 @@ ve.ce.MWBlockImageNode.prototype.onResizableResizing = function ( dimensions ) { } }; +/** + * @inheritdoc ve.ce.MWResizableNode + */ ve.ce.MWBlockImageNode.prototype.isResizable = function () { - return this.model.getMediaType() !== 'AUDIO'; + return ve.ce.MWResizableNode.prototype.isResizable.call( this ) && this.model.getMediaType() !== 'AUDIO'; }; ve.ce.MWBlockImageNode.prototype.getDomPosition = function () {