refactor(core): allow omitting width/height styles for parent nodes

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-04 13:12:00 +01:00
committed by Braks
parent 6aca36149c
commit 732e773075
2 changed files with 46 additions and 24 deletions
@@ -113,8 +113,10 @@ watch(
() => parentNode?.computedPosition.y,
() => parentNode?.computedPosition.z,
() => node.selected,
() => node.dimensions,
() => parentNode?.dimensions,
() => node.dimensions.height,
() => node.dimensions.width,
() => parentNode?.dimensions.height,
() => parentNode?.dimensions.width,
],
([newX, newY, parentX, parentY, parentZ]) => {
const xyzPos = {