fix: use global nodeExtent if node.extent is undefined
This commit is contained in:
@@ -150,7 +150,7 @@ export const createPositionChange = (
|
||||
|
||||
if (diff) {
|
||||
const nextPosition = { x: node.position.x + diff.x, y: node.position.y + diff.y }
|
||||
let currentExtent = node.extent === 'parent' ? nodeExtent : node.extent
|
||||
let currentExtent = node.extent === 'parent' || typeof node.extent === 'undefined' ? nodeExtent : node.extent
|
||||
|
||||
if (node.extent === 'parent' && parent && node.dimensions.width && node.dimensions.height) {
|
||||
currentExtent =
|
||||
|
||||
Reference in New Issue
Block a user