tauri-apps / tauri-apps/plugins-workspace
`window-state`: window shrinks by the height of the menu on every reopen
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
I believe there is a discrepancy between `set_size()` and `inner_size()`.
https://github.com/tauri-apps/plugins-workspace/blob/d40190721ccf36a00d666a03800e972514fc379c/plugins/window-state/src/lib.rs#L210-L215
https://github.com/tauri-apps/plugins-workspace/blob/d40190721ccf36a00d666a03800e972514fc379c/plugins/window-state/src/lib.rs#L304-L309
At least on Windows, `inner_size()` seems to not account for the height of the menu. So every time the window is reopened, it gets a little shorter. In fact, exactly as shorter as the height of the menu.

Contributor guide
Assessment
This issue has not been assessed yet.