diff options
| author | jmoenig <jens@moenig.org> | 2013-11-12 12:30:14 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-12 12:30:14 +0100 |
| commit | 93f97c01e0fb45590128907b9b1c29e43bcf657d (patch) | |
| tree | b1494a6579d3db59e8339c4a79d434c22d75fdb8 | |
| parent | 5d5fc20a6d3d3af70155f645c44ba5b7d40bdf60 (diff) | |
| download | snap-yow-93f97c01e0fb45590128907b9b1c29e43bcf657d.tar.gz snap-yow-93f97c01e0fb45590128907b9b1c29e43bcf657d.zip | |
left-align multi-line text in value-bubbles
| -rw-r--r-- | blocks.js | 24 | ||||
| -rwxr-xr-x | history.txt | 1 |
2 files changed, 5 insertions, 20 deletions
@@ -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 375739d..adf6895 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 |
