From fa621e2a8c9ab04f2585c5c0c717eee391a993da Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 16 Jun 2024 14:01:01 +0530 Subject: [PATCH] fix: del adjusted height & width --- src/components/atoms/Highlighter.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/atoms/Highlighter.tsx b/src/components/atoms/Highlighter.tsx index b72cac06..3199b083 100644 --- a/src/components/atoms/Highlighter.tsx +++ b/src/components/atoms/Highlighter.tsx @@ -36,8 +36,6 @@ export const Highlighter = ({ unmodifiedRect, displayedSelector = '', width, hei height: unmodifiedRect.height, }; - const adjustedWidth = Math.min(rect.width, width - rect.left); // Adjust width if it extends beyond canvas boundary - const adjustedHeight = Math.min(rect.height, height - rect.top); // Adjust height if it extends beyond canvas boundary console.log('unmodifiedRect:', unmodifiedRect) console.log('rectangle:', rect)