Fixes a bug in Morph.fullImageClassic() where it uses the bounds instead of the fullBounds.
dev
Thomas P 2016-01-07 12:48:25 -08:00
rodzic 663c1af1ce
commit 31b8f6eac8
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -2733,11 +2733,10 @@ Morph.prototype.toggleVisibility = function () {
// Morph full image: // Morph full image:
Morph.prototype.fullImageClassic = function () { Morph.prototype.fullImageClassic = function () {
// why doesn't this work for all Morphs? var fb = this.cachedFullBounds || this.fullBounds(), // use the cache since fullDrawOn() will
var fb = this.fullBounds(),
img = newCanvas(fb.extent()), img = newCanvas(fb.extent()),
ctx = img.getContext('2d'); 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); this.fullDrawOn(img, fb);
img.globalAlpha = this.alpha; img.globalAlpha = this.alpha;
return img; return img;