diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 332425dd0..d58ddca70 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -306,7 +306,13 @@ module.exports = { if (style.position !== position) { const { left, top, width, height } = editor.Canvas.offset(target.getEl()); - this.setPosition({ x: left, y: top, position, width, height }); + this.setPosition({ + x: left, + y: top, + width: `${width}px`, + height: `${height}px`, + position + }); } },