diff --git a/src/index.ts b/src/index.ts index 64c934e..9899be5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -310,7 +310,7 @@ const addParent = ( }; const right = { - minX: parentBounds.width - parentMargin.left, + minX: parentBounds.width - parentMargin.right, minY: -parentThickness, maxX: parentBounds.width + parentThickness, maxY: parentBounds.height + parentThickness,