Responsive (#1) make editor responsive

* Make canvas responsive

* made the editor to appear in the middle
This commit is contained in:
Sofie Kedvik
2017-05-16 13:06:36 +02:00
committed by GitHub
parent 1ec1a8edfa
commit b0888a58cd
3 changed files with 16 additions and 2 deletions
+2
View File
@@ -14,6 +14,8 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
backgroundColor: '#d4d4d4',
preserveObjectStacking: true,
selection: false,
width: 1253,
height: 600
});
this.on('mouse:up', function () {