Browse Source

Setup units in onStart in ComponentDrag

pull/2031/head
Artur Arseniev 7 years ago
parent
commit
11dd751f22
  1. 8
      src/commands/view/ComponentDrag.js

8
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
});
}
},

Loading…
Cancel
Save