mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-11 09:50:59 +00:00
Merge pull request #304 from sjpemberton09/development
Add code to resize cache canvas.
This commit is contained in:
commit
34c23bee06
3 changed files with 8 additions and 0 deletions
4
dist/all.js
vendored
4
dist/all.js
vendored
|
|
@ -5277,6 +5277,10 @@ fabric.util.string = {
|
|||
this.upperCanvasEl.style[prop] = value + 'px';
|
||||
}
|
||||
|
||||
if (this.cacheCanvasEl) {
|
||||
this.cacheCanvasEl[prop] = value;
|
||||
}
|
||||
|
||||
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