fix(core): calculate position and computedPos correctly in calcNextPosition
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -144,6 +144,10 @@ export const calcNextPosition = (
|
||||
const clampedPos = clampPosition(nextPosition, extent)
|
||||
|
||||
return {
|
||||
position: clampedPos,
|
||||
position: {
|
||||
x: clampedPos.x - (parentNode?.computedPosition.x || 0),
|
||||
y: clampedPos.y - (parentNode?.computedPosition.y || 0),
|
||||
},
|
||||
computedPosition: clampedPos,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user