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

Window Resizing Bug When Moving Between Monitors with Different Scaling #1053

Open
minetake01 opened this issue Feb 8, 2025 · 0 comments · May be fixed by #1056
Open

Window Resizing Bug When Moving Between Monitors with Different Scaling #1053

minetake01 opened this issue Feb 8, 2025 · 0 comments · May be fixed by #1056

Comments

@minetake01
Copy link

Describe the bug
When moving the window between monitors with different scaling settings causes the window’s size to become erratic. The window appears to resize incorrectly, making it difficult to move or position properly. Notably, dragging the window by its right half seems to offer slightly more stability, but this is not a reliable workaround.

Steps To Reproduce

  1. Run Tao’s window example directly (do not use Tauri).
  2. Ensure you have at least two monitors with different scaling settings (for example, one monitor at 100% scaling and another at 150% scaling).
  3. Drag the window from one monitor to the other.
  4. Observe how the window’s size becomes inconsistent or “bugged” upon moving between the monitors.

Expected behavior
The window should either maintain its size or adjust appropriately when transitioning between monitors with different scaling settings. There should be no erratic resizing behavior during the move.

Screenshots
A video demonstrating the issue is attached:

2025-02-08.21-07-41.mp4

Platform and Versions (please complete the following information):

  • OS: Windows
  • Rustc: 1.84.1

Additional context
I have observed this bug across various Tauri-based apps and believe it is rooted in Tao’s window management implementation. The issue persists in both Tauri 1.0 and 2.0 environments. I attempted to investigate the underlying cause, but the mechanism seems more complex than initially expected. Any insights or potential workarounds would be greatly appreciated. Additionally, I found a couple of related issues, but neither appears to be actively tracked:

I couldn't find an existing issue in Tao's repository that directly addresses this bug, so I created this one. However, if this is a duplicate, please feel free to close it.

dgerhardt added a commit to dgerhardt/tao that referenced this issue Feb 10, 2025
Adjustments to the OS-suggested position are now only applied on
Windows 10. They are not needed anymore on Windows 11.

Fixes tauri-apps#1053, tauri-apps/tauri#10263, tauri-apps/tauri#12626.
dgerhardt added a commit to dgerhardt/tao that referenced this issue Feb 10, 2025
Adjustments to the OS-suggested position are now only applied on
Windows 10. They are not needed anymore on Windows 11.

Fixes tauri-apps#1053, tauri-apps/tauri#10263, tauri-apps/tauri#12626.
dgerhardt added a commit to dgerhardt/tao that referenced this issue Feb 10, 2025
Adjustments to the OS-suggested position are now only applied on
Windows 10. They are not needed anymore on Windows 11.

Fixes tauri-apps#1053, tauri-apps/tauri#10263, tauri-apps/tauri#12626.
dgerhardt added a commit to dgerhardt/tao that referenced this issue Feb 10, 2025
Adjustments to the OS-suggested position are now only applied on
Windows 10. They are not needed anymore on Windows 11.

Fixes tauri-apps#1053, tauri-apps/tauri#10263, tauri-apps/tauri#12626.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant