diff --git a/frontend/components/admin/dashboard/DashboardCanvas.tsx b/frontend/components/admin/dashboard/DashboardCanvas.tsx index 04975d0f..a1e4d65e 100644 --- a/frontend/components/admin/dashboard/DashboardCanvas.tsx +++ b/frontend/components/admin/dashboard/DashboardCanvas.tsx @@ -95,12 +95,19 @@ export const DashboardCanvas = forwardRef( const cellWithGap = GRID_CONFIG.CELL_SIZE + GRID_CONFIG.GAP; const gridSize = `${cellWithGap}px ${cellWithGap}px`; + // 캔버스 높이를 요소들의 최대 y + height 기준으로 계산 (최소 화면 높이 보장) + const minCanvasHeight = Math.max( + typeof window !== "undefined" ? window.innerHeight : 800, + ...elements.map((el) => el.position.y + el.size.height + 100), // 하단 여백 100px + ); + return (