left-align multi-line text in value-bubbles

pull/3/merge
jmoenig 2013-11-12 12:30:14 +01:00
rodzic 5d5fc20a6d
commit 93f97c01e0
2 zmienionych plików z 5 dodań i 20 usunięć

Wyświetl plik

@ -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(

Wyświetl plik

@ -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