center image on resize
This commit is contained in:
@@ -62,6 +62,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
|
||||
this.getViewport().reset();
|
||||
}
|
||||
this.sendToBack(this.getImage());
|
||||
this.getImage().center();
|
||||
this.getDragbars().resetPosition();
|
||||
this.renderAll();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user