From feefac69264af7cd65f5567ee717ee7cd48b865d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 31 Mar 2020 16:00:41 +0200 Subject: [PATCH] fixed a type error --- src/blocks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blocks.js b/src/blocks.js index 603d1899..2d5940fe 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -2028,7 +2028,9 @@ SyntaxElementMorph.prototype.fixLayout = function () { part.bounds.setWidth(blockWidth - myself.edge - ico); adjustMultiWidth = myself.corner + myself.edge; } - part.fixLoopLayout(); + if (part.fixLoopLayout) { // not a multi-arg + part.fixLoopLayout(); + } } if (part.slotSpec === '%cs') { part.inputs().forEach(function (slot) {