Skip to content

Commit

Permalink
fix: ingore set windows min size when in full screen (#542)
Browse files Browse the repository at this point in the history
In Win, when the windows is full screen, calling the setMinSize from tauri causes the window to move and stop to be in full screen.
  • Loading branch information
andrewinci committed Jul 19, 2023
1 parent ff6cc32 commit 5d81a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/tauri/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const usePlatform = (): Platform | undefined => {
};

export const setWindowMinSize = (width: number, height: number): void => {
appWindow.setMinSize(new LogicalSize(width, height));
if (!appWindow.isFullscreen()) appWindow.setMinSize(new LogicalSize(width, height));
};

export const setWindowTitle = (title: string): void => {
Expand Down

0 comments on commit 5d81a6b

Please sign in to comment.