From 31b8f6eac80e036c7cd437b10dd7681e79bf642c Mon Sep 17 00:00:00 2001 From: Thomas P Date: Thu, 7 Jan 2016 12:48:25 -0800 Subject: [PATCH] Fixed #1090 Fixes a bug in Morph.fullImageClassic() where it uses the bounds instead of the fullBounds. --- morphic.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/morphic.js b/morphic.js index f10c8789..615b8777 100644 --- a/morphic.js +++ b/morphic.js @@ -2733,11 +2733,10 @@ Morph.prototype.toggleVisibility = function () { // Morph full image: Morph.prototype.fullImageClassic = function () { - // why doesn't this work for all Morphs? - var fb = this.fullBounds(), + var fb = this.cachedFullBounds || this.fullBounds(), // use the cache since fullDrawOn() will img = newCanvas(fb.extent()), ctx = img.getContext('2d'); - ctx.translate(-this.bounds.origin.x, -this.bounds.origin.y); + ctx.translate(-fb.origin.x, -fb.origin.y); this.fullDrawOn(img, fb); img.globalAlpha = this.alpha; return img;