From b32ed8ef2392570cbfbf09a474d02c14ee12fd81 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 4 Oct 2013 10:53:17 +0200 Subject: [PATCH] Prevent watcher cells from growing wider as their contents becomes taller --- history.txt | 1 + objects.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/history.txt b/history.txt index 2605a144..26d93d44 100755 --- a/history.txt +++ b/history.txt @@ -1937,3 +1937,4 @@ ______ 131004 ------ * Threads: Type-check the SPLIT block's input before eval'ing it +* Objects: Prevent watcher cells from growing wider as their contents becomes taller diff --git a/objects.js b/objects.js index 86a1d381..72cdffac 100644 --- a/objects.js +++ b/objects.js @@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2013-October-01'; +modules.objects = '2013-October-04'; var SpriteMorph; var StageMorph; @@ -5720,7 +5720,8 @@ CellMorph.prototype.drawNew = function () { this.silentSetWidth(Math.max( this.contentsMorph.width() + this.edge * 2, (this.contents instanceof Context || - this.contents instanceof List ? 0 : this.height() * 2) + this.contents instanceof List ? 0 : + SyntaxElementMorph.prototype.fontSize * 3.5) )); // draw my outline