refactor(libs) add width, height and positionAbsolute props to NodeProps
This commit is contained in:
@@ -254,8 +254,8 @@ export function calcNextPosition<NodeType extends NodeBase>(
|
||||
? [
|
||||
[parentPos.x + nodeWidth * currNodeOrigin[0], parentPos.y + nodeHeight * currNodeOrigin[1]],
|
||||
[
|
||||
parentPos.x + parentNode.computed.width - nodeWidth + nodeWidth * currNodeOrigin[0],
|
||||
parentPos.y + parentNode.computed.height - nodeHeight + nodeHeight * currNodeOrigin[1],
|
||||
parentPos.x + (parentNode.computed?.width ?? 0) - nodeWidth + nodeWidth * currNodeOrigin[0],
|
||||
parentPos.y + (parentNode.computed?.height ?? 0) - nodeHeight + nodeHeight * currNodeOrigin[1],
|
||||
],
|
||||
]
|
||||
: currentExtent;
|
||||
|
||||
Reference in New Issue
Block a user