Added code to resize cache canvas.

_setDimensions will now correctly alter the cache canvas size when the
other canvases are resized. This ensures per pixel hit testing will
still function.
This commit is contained in:
Steve Pemberton 2012-10-30 23:34:52 +00:00
parent dbe5ad2149
commit 3b3c439b00
3 changed files with 9 additions and 0 deletions

5
dist/all.js vendored
View file

@ -5277,6 +5277,11 @@ fabric.util.string = {
this.upperCanvasEl.style[prop] = value + 'px';
}
if (this.cacheCanvasEl) {
this.cacheCanvasEl[prop] = value;
this.cacheCanvasEl.style[prop] = value + 'px';
}
if (this.wrapperEl) {
this.wrapperEl.style[prop] = value + 'px';
}

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -340,6 +340,10 @@
this.upperCanvasEl.style[prop] = value + 'px';
}
if (this.cacheCanvasEl) {
this.cacheCanvasEl[prop] = value;
}
if (this.wrapperEl) {
this.wrapperEl.style[prop] = value + 'px';
}