diff --git a/src/components/window/WindowFrame.tsx b/src/components/window/WindowFrame.tsx index d99c7d20..c5aa8b15 100644 --- a/src/components/window/WindowFrame.tsx +++ b/src/components/window/WindowFrame.tsx @@ -252,7 +252,7 @@ export function WindowFrame(props: PropsWithChildren): JSX.Ele const maxSize = useMemo( () => ({ width: `calc(100% - ${position?.x <= windowMargin ? windowMargin * 2 : position?.x || 0}px)`, - height: viewport.height - (position?.y >= windowMargin ? windowMargin * 2 : position?.y || 0), + height: viewport.height - (position?.y <= windowMargin ? windowMargin * 2 : position?.y || 0), }), [windowMargin, position, viewport.height], );