Skip to content

Commit

Permalink
fix: max window height
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga committed Oct 17, 2023
1 parent 2f30a1b commit 58d65ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/window/WindowFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function WindowFrame(props: PropsWithChildren<WindowFrameProps>): 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],
);
Expand Down

0 comments on commit 58d65ec

Please sign in to comment.