refactor(core): set node initialized after applying dimensions change
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -139,8 +139,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
|
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
|
||||||
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
|
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
|
||||||
|
|
||||||
if (!node.initialized) node.initialized = true
|
|
||||||
|
|
||||||
res.push({
|
res.push({
|
||||||
id: node.id,
|
id: node.id,
|
||||||
type: 'dimensions',
|
type: 'dimensions',
|
||||||
|
|||||||
@@ -169,6 +169,8 @@ export const applyChanges = <
|
|||||||
handleParentExpand(element, parent)
|
handleParentExpand(element, parent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!element.initialized) element.initialized = true
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user