mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-02 15:56:36 +08:00
parent
1073204858
commit
320420478c
@ -128,7 +128,7 @@ export default class DragResizeHelper {
|
|||||||
this.moveableHelper.onResize(e);
|
this.moveableHelper.onResize(e);
|
||||||
const { marginLeft, marginTop } = getMarginValue(this.target);
|
const { marginLeft, marginTop } = getMarginValue(this.target);
|
||||||
this.target.style.left = `${this.frameSnapShot.left + beforeTranslate[0] - marginLeft}px`;
|
this.target.style.left = `${this.frameSnapShot.left + beforeTranslate[0] - marginLeft}px`;
|
||||||
this.target.style.top = `${this.frameSnapShot.top + beforeTranslate[1] - marginTop} - marginToppx`;
|
this.target.style.top = `${this.frameSnapShot.top + beforeTranslate[1] - marginTop}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.target.style.width = `${width}px`;
|
this.target.style.width = `${width}px`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user