From bce5e43772c98109c4b00d5d3761994b9f85b272 Mon Sep 17 00:00:00 2001 From: Poovizhi99 Date: Thu, 16 Oct 2025 11:49:00 +0530 Subject: [PATCH] solved maximum exeed bug in create new window --- app/src/components/templates/CreateNewWindow.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/components/templates/CreateNewWindow.tsx b/app/src/components/templates/CreateNewWindow.tsx index c874688..ccf87bf 100644 --- a/app/src/components/templates/CreateNewWindow.tsx +++ b/app/src/components/templates/CreateNewWindow.tsx @@ -217,16 +217,6 @@ export const RenderInNewWindow: React.FC = ({ }; }, []); - useEffect(() => { - const handleResize = () => { - childWindowRef.current?.dispatchEvent(new Event("resize")); - }; - childWindowRef.current?.addEventListener("resize", handleResize); - return () => { - childWindowRef.current?.removeEventListener("resize", handleResize); - }; - }, []); - useEffect(() => { const w = childWindowRef.current; if (w && !w.closed) {