diff --git a/apps/wr/app/map/newWindowPopup.tsx b/apps/wr/app/map/newWindowPopup.tsx index faba4c81f..403401714 100644 --- a/apps/wr/app/map/newWindowPopup.tsx +++ b/apps/wr/app/map/newWindowPopup.tsx @@ -668,7 +668,13 @@ const NewWindowPopup: React.FC = ({ return ( viewMode == 'nothing' ? <> : - + {/* 체크된 레이어에 따른 조건부 렌더링 */} {renderConditionalContent()} diff --git a/apps/wr/app/map/newWindowPortal.tsx b/apps/wr/app/map/newWindowPortal.tsx index fc28495ad..6d650e3b7 100644 --- a/apps/wr/app/map/newWindowPortal.tsx +++ b/apps/wr/app/map/newWindowPortal.tsx @@ -27,9 +27,13 @@ interface NewWindowPortalProps { children: React.ReactNode; onClose: () => void; title?: string; + width?: number; + height?: number; + resizable?: string; + scrollbars?: string; } -const NewWindowPortal: React.FC = ({ children, onClose, title = "Detail" }) => { +const NewWindowPortal: React.FC = ({ children, onClose, title = "", width = 900, height = 800, resizable = "yes", scrollbars= "yes" }) => { const [container, setContainer] = useState(null); const newWindowRef = useRef(null); const onCloseRef = useRef(onClose); @@ -48,7 +52,8 @@ const NewWindowPortal: React.FC = ({ children, onClose, ti if (newWindowRef.current && !newWindowRef.current.closed) return; // 1. 새 창을 열고 참조를 저장합니다. - newWindowRef.current = window.open('', title, 'width=900,height=800,resizable=yes,scrollbars=yes'); + const popupOptions = `width=${width},height=${height},resizable=${resizable},scrollbars=${scrollbars}`; + newWindowRef.current = window.open('', title, popupOptions); if (newWindowRef.current) { newWindowRef.current.document.title = title;