Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 354: App windows size is not persistent on MacOS #357

Closed

Conversation

JayceFFT
Copy link
Contributor

#354

Tested on macOS Sonoma (14).
Need test on other platforms

@franciscoBSalgueiro
Copy link
Owner

Does it persist the window state on macOS? On windows it doesn't seem to be working

@JayceFFT
Copy link
Contributor Author

JayceFFT commented Sep 7, 2024

Hi, yes at least on my Mac.
I added this:
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }

I guess windows management in microsoft word may be different. An option is maybe necessary with this plugin.

It seems on mac that Tauri is managing the window container.
Then react may switch it to full screen. I had to modify this behavior. Otherwise i could see the window opening with the right size (the old resized one) then a plist second later, react was changing its size to full screen.

Maybe there is a conflict on windows between react and Tauri?

@JayceFFT
Copy link
Contributor Author

JayceFFT commented Sep 7, 2024

The doc of the plugin: https://github.com/tauri-apps/tauri-plugin-window-state

@franciscoBSalgueiro
Copy link
Owner

I'll wait for Tauri v2 to see if it fixes this issue with the new plugin

@franciscoBSalgueiro
Copy link
Owner

franciscoBSalgueiro commented Oct 10, 2024

Migrating to tauri v2 has fixed this issue (#407) so I'll close the PR but thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants