diff options
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | objects.js | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/history.txt b/history.txt index 1e1ccee..2b0f73f 100755 --- a/history.txt +++ b/history.txt @@ -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) @@ -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); |
