Merge pull request #467 from xxorax/master

Fix backgroundColor render on nodejs
This commit is contained in:
Juriy Zaytsev 2013-03-08 15:59:02 -08:00
commit 79575b9dc7

View file

@ -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;
};