correcting missing values
This commit is contained in:
@@ -85,7 +85,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,
|
||||
@@ -98,7 +98,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