WebviewWindow doesn't adhere to x,y on Mac
Describe the bug Bug is very similar to 11430
When I try to create a new window using WebviewWindow with x,y options, the newly created Window appears on the Display, based on the x,y coordinates, but then jumps to the primary Display. I have to use setPosition method to move it to the right Display.
This behavior can be fixed with setPosition, ex: await webview.setPosition(position), but the workaround won't work if the screens have different scale/ratio, see image:
Hey guys, are there any updates on this one? This is a regression from Tauri 1. I wish I could fix it myself, but I'm still learning Rust...
For anyone else having the same issue: It looks like on macOS, WebviewWindow.setPosition accepts LogicalPosition instead of PhysicalPosition. If, for example, you get your coords from Monitor, which provides PhysicalPosition on both Mac and Windows, you will need to convert this PhysicalPosition to LogicalPosition.
Similar issue here #1057