Open
Description
This issue has been upstreamed from tauri-apps/tauri#4056
Describe the bug
Hello,
a window changes its position if the windo is resize while hidden. The size, for example, is changed with window.setSize(new LogicalSize(800, 300))
Due to this, the UX is not amazing and the window can move out of the display. If the window is resized before it is first shown, it can appear outside the display too (therefore, invisible to the user).
Reproduction
Screen.Recording.2022-05-04.at.17.09.24.mov
- Hide window
- Resize while hidden
- Show the window again
Repository to reproduce
https://github.com/elvinaspredkelis/window_move
Note
Tauri explicitly emits tauri://move
event after resizing.
Expected behavior
The window keeps the top-left point position.
Platform and versions
Environment
› OS: Mac OS 12.0.1 X64
› Node.js: 16.6.2
› npm: 8.7.0
› pnpm: Not installed!
› yarn: 1.22.11
› rustup: 1.24.3
› rustc: 1.58.1
› cargo: 1.58.0
› Rust toolchain: stable-x86_64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.0.0-rc.9
› @tauri-apps/api [NPM]: 1.0.0-rc.4
› tauri [RUST]: 1.0.0-rc.8,
› tauri-build [RUST]: 1.0.0-rc.7,
› tao [RUST]: 0.8.3,
› wry [RUST]: 0.15.1,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:8080/
› framework: Vue.js
App directory structure
├─ node_modules
├─ public
├─ src-tauri
├─ .git
├─ .vscode
└─ src
Stack trace
No response
Additional context
If not easy to fix, I would appreciate any suggestions on how to mitigate this issue with the current setup. 🙏
Metadata
Metadata
Assignees
Type
Projects
Status
📬Proposal