diff options
| author | jmoenig <jens@moenig.org> | 2014-09-30 10:31:13 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-09-30 10:31:13 +0200 |
| commit | 71c9103503691285191e024c8ae30200240d54cc (patch) | |
| tree | 4c5b17145ffa020abea041189b29e38a01b054b9 /objects.js | |
| parent | e88ea49374d33e19eafbf3d295fa098ec86d7f1f (diff) | |
| download | snap-byow-71c9103503691285191e024c8ae30200240d54cc.tar.gz snap-byow-71c9103503691285191e024c8ae30200240d54cc.zip | |
fixed #378
disable context menus for boolean representations
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |
