-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
platform: macOSstatus: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
When opening a new window with the following code:
const appWindow = new WebviewWindow("settings", {
title: "Settings",
center: true,
fullscreen: false,
resizable: false,
alwaysOnTop: true,
focus: true,
focusable: true,
skipTaskbar: true,
visible: true,
url: "/settings",
});On a system with macOS 26.2, it often opens on a different monitor than the main window's current monitor.
Note: Due to different monitor sizes, I currently have my monitors set to different scaling resolutions.
When this happens, it seems to shrink the window size from its previous size due to the different scaling resolutions, leading to an ultimately humorous but unhelpful window size like so:
This persists even when explicitly sizing the window after creation:
const appWindow = new WebviewWindow("settings", {
title: "Settings",
center: true,
fullscreen: false,
resizable: false,
alwaysOnTop: true,
focus: true,
focusable: true,
skipTaskbar: true,
visible: true,
url: "/settings",
});
void appWindow
.once("tauri://created", function () {})
.then(() => {
appWindow.setSize(
new LogicalSize({
height: 640,
width: 800,
}),
);
appWindow.setPosition(
new LogicalPosition({
x: 0,
y: 0,
}),
);
})
.catch((err) => console.error(err));Reproduction
No response
Expected behavior
No response
Full tauri info output
> [email protected] tauri
> tauri info
[✔] Environment
- OS: Mac OS 26.2.0 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ Xcode: 26.2
✔ rustc: 1.92.0 (ded5c06cf 2025-12-08)
✔ cargo: 1.92.0 (344c4567c 2025-10-21)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 24.12.0
- pnpm: 10.23.0
- yarn: 1.22.22
- npm: 11.6.2
- bun: 1.3.5
- deno: deno 2.6.3
[-] Packages
- tauri 🦀: 2.9.5
- tauri-build 🦀: 2.5.3
- wry 🦀: 0.53.5, (outdated, latest: 0.54.1)
- tao 🦀: 0.34.5
- @tauri-apps/api ⱼₛ: 2.9.1
- @tauri-apps/cli ⱼₛ: 2.9.6
[-] Plugins
- tauri-plugin-opener 🦀: 2.5.3
- @tauri-apps/plugin-opener ⱼₛ: 2.5.3
- tauri-plugin-fs 🦀: 2.4.5
- @tauri-apps/plugin-fs ⱼₛ: not installed!
- tauri-plugin-window-state 🦀: 2.4.1
- @tauri-apps/plugin-window-state ⱼₛ: not installed!
- tauri-plugin-process 🦀: 2.3.1
- @tauri-apps/plugin-process ⱼₛ: 2.3.1
- tauri-plugin-dialog 🦀: 2.5.0, (outdated, latest: 2.6.0)
- @tauri-apps/plugin-dialog ⱼₛ: 2.5.0 (outdated, latest: 2.6.0)
- tauri-plugin-os 🦀: 2.3.2
- @tauri-apps/plugin-os ⱼₛ: 2.3.2
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist/moonsound/browser
- devUrl: http://localhost:1420/
- framework: Angular
- bundler: Webpack
Stack trace
Additional context
No response
Metadata
Metadata
Assignees
Labels
platform: macOSstatus: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug