-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
priority: 2 mediumE.g. DX regressions, bugs, dev crashes, etc...E.g. DX regressions, bugs, dev crashes, etc...status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
I create a window with maxWidth and maxHeight, and then i double click the div with data-tauri-drag-region attribute,the window will be maximized,the window size will over the value of maxWidth or maxHeight what i set.
it will not happened in Electron
Reproduction
No response
Expected behavior
I hope double click can preserve the window's zoom in and out behavior, but when zooming in, the window size cannot exceed the maximum size I have set
Full tauri info output
$ tauri info
[✔] Environment
- OS: Windows 10.0.22621 x86_64 (X64)
✔ WebView2: 144.0.3719.82
✔ MSVC: Visual Studio 生成工具 2022
✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
✔ cargo: 1.77.2 (e52e36006 2024-03-26)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: 1.77.2-aarch64-pc-windows-msvc (default)
- node: 20.19.5
- yarn: 1.22.22
- npm: 10.8.2
[-] Packages
- tauri 🦀: 2.9.2, (outdated, latest: 2.9.5)
- tauri-build 🦀: 2.5.1, (outdated, latest: 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-store 🦀: 2.4.1, (outdated, latest: 2.4.2)
- @tauri-apps/plugin-store ⱼₛ: 2.4.1
- tauri-plugin-log 🦀: 2.7.1, (outdated, latest: 2.8.0)
- @tauri-apps/plugin-log ⱼₛ: 2.7.1
- tauri-plugin-process 🦀: 2.3.1
- @tauri-apps/plugin-process ⱼₛ: 2.3.1
- tauri-plugin-autostart 🦀: 2.5.1
- @tauri-apps/plugin-autostart ⱼₛ: 2.5.1
- tauri-plugin-opener 🦀: 2.5.2, (outdated, latest: 2.5.3)
- @tauri-apps/plugin-opener ⱼₛ: 2.5.2
- tauri-plugin-window-state 🦀: 2.4.1
- @tauri-apps/plugin-window-state ⱼₛ: 2.4.1
- tauri-plugin-dialog 🦀: 2.4.2, (outdated, latest: 2.6.0)
- @tauri-apps/plugin-dialog ⱼₛ: 2.4.2
- tauri-plugin-single-instance 🦀: 2.3.6, (outdated, latest: 2.3.7)
- @tauri-apps/plugin-single-instance ⱼₛ: not installed!
- tauri-plugin-fs 🦀: 2.4.4, (outdated, latest: 2.4.5)
- @tauri-apps/plugin-fs ⱼₛ: 2.4.4
- tauri-plugin-updater 🦀: 2.2.0, (outdated, latest: 2.9.0)
- @tauri-apps/plugin-updater ⱼₛ: 2.2.0
- tauri-plugin-os 🦀: 2.3.2
- @tauri-apps/plugin-os ⱼₛ: 2.3.2
- tauri-plugin-global-shortcut 🦀: 2.3.1
- @tauri-apps/plugin-global-shortcut ⱼₛ: 2.3.1
[-] App
- build-type: bundle
- CSP: unset
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
Additional context
No response
Metadata
Metadata
Assignees
Labels
priority: 2 mediumE.g. DX regressions, bugs, dev crashes, etc...E.g. DX regressions, bugs, dev crashes, etc...status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug