new fabric canvas set width
snippet in javascript

new fabric canvas set width

user2553

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