From 93f97c01e0fb45590128907b9b1c29e43bcf657d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 12 Nov 2013 12:30:14 +0100 Subject: [PATCH] left-align multi-line text in value-bubbles --- blocks.js | 24 ++++-------------------- history.txt | 1 + 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/blocks.js b/blocks.js index 1d46b6fd..b2b38c40 100644 --- a/blocks.js +++ b/blocks.js @@ -1603,38 +1603,22 @@ SyntaxElementMorph.prototype.showBubble = function (value) { txt = value.length > 500 ? value.slice(0, 500) + '...' : value; morphToShow = new TextMorph( txt, - this.fontSize, - null, - false, - false, - 'center' + this.fontSize ); } else if (value === null) { morphToShow = new TextMorph( '', - this.fontSize, - null, - false, - false, - 'center' + this.fontSize ); } else if (value === 0) { morphToShow = new TextMorph( '0', - this.fontSize, - null, - false, - false, - 'center' + this.fontSize ); } else if (value.toString) { morphToShow = new TextMorph( value.toString(), - this.fontSize, - null, - false, - false, - 'center' + this.fontSize ); } bubble = new SpeechBubbleMorph( diff --git a/history.txt b/history.txt index 375739d5..adf68950 100755 --- a/history.txt +++ b/history.txt @@ -1991,3 +1991,4 @@ ______ ------ * Blocks, BYOB, Store: customizable drop-down menus for input slots * Objects: fixed wrong NaN display for variable watchers +* Blocks: left-align multi-line text in value-bubbles