fabric canvas set size code example
Example: new fabric canvas set width
var canvas = new fabric.Canvas("test_fabric");
canvas.setDimensions({width:800, height:200});
var canvas = new fabric.Canvas("test_fabric");
canvas.setDimensions({width:800, height:200});