Added simple resize function to canvas. Needs to be fixed with positioning of other elements
This commit is contained in:
@@ -31,6 +31,12 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
|
||||
});
|
||||
},
|
||||
|
||||
resize: function (args) {
|
||||
this.setHeight(args.height);
|
||||
this.setWidth(args.width);
|
||||
this.renderAll();
|
||||
},
|
||||
|
||||
get3dHandler: function () {
|
||||
return this.__3dHandler ||
|
||||
(this.__3dHandler = new ThreeDHandler(this));
|
||||
|
||||
Reference in New Issue
Block a user