kopia lustrzana https://github.com/backface/turtlestitch
left-align multi-line text in value-bubbles
rodzic
5d5fc20a6d
commit
93f97c01e0
24
blocks.js
24
blocks.js
|
@ -1603,38 +1603,22 @@ SyntaxElementMorph.prototype.showBubble = function (value) {
|
||||||
txt = value.length > 500 ? value.slice(0, 500) + '...' : value;
|
txt = value.length > 500 ? value.slice(0, 500) + '...' : value;
|
||||||
morphToShow = new TextMorph(
|
morphToShow = new TextMorph(
|
||||||
txt,
|
txt,
|
||||||
this.fontSize,
|
this.fontSize
|
||||||
null,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'center'
|
|
||||||
);
|
);
|
||||||
} else if (value === null) {
|
} else if (value === null) {
|
||||||
morphToShow = new TextMorph(
|
morphToShow = new TextMorph(
|
||||||
'',
|
'',
|
||||||
this.fontSize,
|
this.fontSize
|
||||||
null,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'center'
|
|
||||||
);
|
);
|
||||||
} else if (value === 0) {
|
} else if (value === 0) {
|
||||||
morphToShow = new TextMorph(
|
morphToShow = new TextMorph(
|
||||||
'0',
|
'0',
|
||||||
this.fontSize,
|
this.fontSize
|
||||||
null,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'center'
|
|
||||||
);
|
);
|
||||||
} else if (value.toString) {
|
} else if (value.toString) {
|
||||||
morphToShow = new TextMorph(
|
morphToShow = new TextMorph(
|
||||||
value.toString(),
|
value.toString(),
|
||||||
this.fontSize,
|
this.fontSize
|
||||||
null,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
'center'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
bubble = new SpeechBubbleMorph(
|
bubble = new SpeechBubbleMorph(
|
||||||
|
|
|
@ -1991,3 +1991,4 @@ ______
|
||||||
------
|
------
|
||||||
* Blocks, BYOB, Store: customizable drop-down menus for input slots
|
* Blocks, BYOB, Store: customizable drop-down menus for input slots
|
||||||
* Objects: fixed wrong NaN display for variable watchers
|
* Objects: fixed wrong NaN display for variable watchers
|
||||||
|
* Blocks: left-align multi-line text in value-bubbles
|
||||||
|
|
Ładowanie…
Reference in New Issue