From 71c9103503691285191e024c8ae30200240d54cc Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 30 Sep 2014 10:31:13 +0200 Subject: fixed #378 disable context menus for boolean representations --- objects.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index a36cfae..cca5439 100644 --- a/objects.js +++ b/objects.js @@ -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); -- cgit v1.3.1