mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 03:44:45 +00:00
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:
parent
dbe5ad2149
commit
3b3c439b00
3 changed files with 9 additions and 0 deletions
5
dist/all.js
vendored
5
dist/all.js
vendored
|
|
@ -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
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue