mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 02:24:42 +00:00
Merge pull request #467 from xxorax/master
Fix backgroundColor render on nodejs
This commit is contained in:
commit
79575b9dc7
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@
|
|||
|
||||
var origSetWidth = fabric.StaticCanvas.prototype.setWidth;
|
||||
fabric.StaticCanvas.prototype.setWidth = function(width) {
|
||||
origSetWidth.call(this);
|
||||
origSetWidth.call(this, width);
|
||||
this.nodeCanvas.width = width;
|
||||
return this;
|
||||
};
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
|
||||
var origSetHeight = fabric.StaticCanvas.prototype.setHeight;
|
||||
fabric.StaticCanvas.prototype.setHeight = function(height) {
|
||||
origSetHeight.call(this);
|
||||
origSetHeight.call(this, height);
|
||||
this.nodeCanvas.height = height;
|
||||
return this;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue