Closed akumasign closed 6 months ago
Do these monitors have different DPI (scaling)?
Do these monitors have different DPI (scaling)?
Thanks for the reminder, I forgot that the second monitor's scaling is 125% and the first monitor's 100%. After testing, when the scaling ratio is consistent, the problem no longer occurs. I'm really not sure if this is a BUG.
Personally, I think the window size should be adjusted when the DPI is changed. It's the default behavior in Windows, just like you drag a window to another monitor with a different DPI.
Describe the bug
This is a click event handler for the menu button on the main window to display the menu window. Every time you click this button after moving the main window to another monitor, the size of the menu window will increase significantly after setPosition, every time.
(Also, when clicking a button to display the menu window in the second monitor, the window appears to the left of the mouse pointer instead of the right as expected. Works fine in the first monitor)
This is my environment: Operating system: windows 11 x64 professional edition Monitor 1 resolution: 3440 x 1440 Monitor 2 resolution: 2560 x 1080
Configuration in Cargo.toml:
This is my current temporary solution:
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response