Merge branch 'P5-1859_panorama_canvas_breaks'
This commit is contained in:
Vendored
+3
-2
@@ -422,6 +422,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
|
||||
this.getViewport().reset();
|
||||
}
|
||||
this.sendToBack(this.getImage());
|
||||
this.getImage().center();
|
||||
this.getDragbars().resetPosition();
|
||||
this.renderAll();
|
||||
},
|
||||
@@ -819,7 +820,7 @@ function DragbarHandler(canvas) {
|
||||
|
||||
_dragbars.x = new fabric.Rect($.extend({}, config.dragBar, {
|
||||
axis: 'x',
|
||||
width: canvas.getImage().width,
|
||||
width: canvas.getImage().width * canvas.getImage().scaleY,
|
||||
height: config.dragBar.size,
|
||||
lockMovementY: true,
|
||||
selectable: true,
|
||||
@@ -832,7 +833,7 @@ function DragbarHandler(canvas) {
|
||||
_dragbars.y = new fabric.Rect($.extend({}, config.dragBar, {
|
||||
axis: 'y',
|
||||
width: config.dragBar.size,
|
||||
height: canvas.getImage().height,
|
||||
height: canvas.getImage().height * canvas.getImage().scaleY,
|
||||
lockMovementX: true,
|
||||
selectable: true,
|
||||
hoverCursor: 'ns-resize',
|
||||
|
||||
Reference in New Issue
Block a user