|
@@ -97,7 +97,10 @@ export function createCompStyle(
|
|
if (layout.transformMatrix) {
|
|
if (layout.transformMatrix) {
|
|
const m = Matrix.createFromMatrixStr(layout.transformMatrix);
|
|
const m = Matrix.createFromMatrixStr(layout.transformMatrix);
|
|
m.ty = parseFloat(
|
|
m.ty = parseFloat(
|
|
- designToNaturalSize(pxToDesignSize(m.ty), { adaptiveH: true })
|
|
|
|
|
|
+ designToNaturalSize(pxToDesignSize(m.ty), {
|
|
|
|
+ adaptiveH:
|
|
|
|
+ module.helper.findParentComp(comp.id)?.layout.size[2]?.unit === "%",
|
|
|
|
+ })
|
|
);
|
|
);
|
|
style.transform = m.getMatrixStr(); //layout.transformMatrix;
|
|
style.transform = m.getMatrixStr(); //layout.transformMatrix;
|
|
style.transformOrigin = "0 0";
|
|
style.transformOrigin = "0 0";
|