disable context menus for boolean representations
pull/3/merge
jmoenig 2014-09-30 10:31:13 +02:00
rodzic e88ea49374
commit 71c9103503
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -2288,4 +2288,5 @@ ______
* Objects: fixed #593 match broadcast numbers with event hat blocks containing strings that can be parsed as numbers
* BYOB: allow percent symbols in custom block texts (fix #361), thanks, @Gubolin!!
* Morphic: allow negative min/max values for sliders (fix #285), thanks, @Gubolin!!
* Objects: fixed #378 (disable context menus for boolean representations)

Wyświetl plik

@ -6408,10 +6408,14 @@ CellMorph.prototype.drawNew = function () {
}
this.contentsMorph.setColor(new Color(255, 255, 255));
} else if (typeof this.contents === 'boolean') {
this.contentsMorph = SpriteMorph.prototype.booleanMorph.call(
img = SpriteMorph.prototype.booleanMorph.call(
null,
this.contents
);
).fullImage();
this.contentsMorph = new Morph();
this.contentsMorph.silentSetWidth(img.width);
this.contentsMorph.silentSetHeight(img.height);
this.contentsMorph.image = img;
} else if (this.contents instanceof HTMLCanvasElement) {
this.contentsMorph = new Morph();
this.contentsMorph.silentSetWidth(this.contents.width);