From 15cd0b247709408e167bd163e66af6b4f87b3357 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 14 Aug 2024 19:37:47 -0700 Subject: [PATCH] fix resize handle drag offset --- frontend/layout/lib/layoutModel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/layout/lib/layoutModel.ts b/frontend/layout/lib/layoutModel.ts index 672b6abf8..783a33f90 100644 --- a/frontend/layout/lib/layoutModel.ts +++ b/frontend/layout/lib/layoutModel.ts @@ -553,8 +553,8 @@ export class LayoutModel { } const boundingRect = this.displayContainerRef.current?.getBoundingClientRect(); - x -= boundingRect?.top; - y -= boundingRect?.left; + x -= boundingRect?.top + 10; + y -= boundingRect?.left - 10; const clientPoint = parentIsRow ? x : y; const clientDiff = (this.resizeContext.resizeHandleStartPx - clientPoint) * this.resizeContext.pixelToSizeRatio;