From 4fb3d7169f4e82a876e9aaf73296fff3a8d12d8d Mon Sep 17 00:00:00 2001 From: Preet Date: Mon, 21 Feb 2022 22:11:50 +0530 Subject: [PATCH] use clientWidth instead of getBoundingClientRect --- app/client/src/utils/hooks/useHorizontalResize.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/utils/hooks/useHorizontalResize.tsx b/app/client/src/utils/hooks/useHorizontalResize.tsx index ef9e50a0b8..1e3cec8dc4 100644 --- a/app/client/src/utils/hooks/useHorizontalResize.tsx +++ b/app/client/src/utils/hooks/useHorizontalResize.tsx @@ -112,7 +112,7 @@ const useHorizontalResize = ( unFocus(document, window); if (ref.current) { - const width = ref.current.getBoundingClientRect().width; + const width = ref.current.clientWidth; const current = event.touches[0].clientX; const positionDelta = position - current; const widthDelta = inverse ? -positionDelta : positionDelta;