migration tweaks

pull/95/head
jmoenig 2020-03-23 17:26:27 +01:00
rodzic 322245e1ea
commit a5aaaccb07
2 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2020-March-19';
modules.blocks = '2020-March-23';
var SyntaxElementMorph;
var BlockMorph;
@ -9800,7 +9800,7 @@ TemplateSlotMorph.prototype.evaluate = function () {
TemplateSlotMorph.prototype.fixLayout = function () {
var template = this.template();
this.setExtent(template.extent().add(this.edge * 2 + 2));
this.bounds.setExtent(template.extent().add(this.edge * 2 + 2));
template.setPosition(this.position().add(this.edge + 1));
if (this.parent) {
if (this.parent.fixLayout) {
@ -12801,7 +12801,7 @@ ScriptFocusMorph.prototype.manifestStatement = function () {
this.edge = 0;
this.alpha = 1;
this.color = this.editor.feedbackColor;
this.setExtent(new Point(
this.bounds.setExtent(new Point(
newScript ?
SyntaxElementMorph.prototype.hatWidth : this.element.width(),
Math.max(

Wyświetl plik

@ -11677,12 +11677,18 @@ WorldMorph.prototype.condenseDamages = function () {
return trgt;
}
var again = true, size = this.broken.length;
this.broken = condense(this.broken);
/* // overy eager mechanism, commented out for performance
var again = true,
size = this.broken.length;
while (again) {
this.broken = condense(this.broken);
again = (this.broken.length < size);
size = this.broken.length;
}
*/
};
WorldMorph.prototype.doOneCycle = function () {