tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
78.1k stars 2.31k forks source link

[feat] add an option to prevent window overflow #9671

Open Legend-Master opened 1 week ago

Legend-Master commented 1 week ago

Describe the problem

If I set the initial window size to say 1280x720, it will overflow to outside of the monitor on some screens (e.g. 1920x1080 with 1.75 scaling on a laptop)

Describe the solution you'd like

It would be nice to have a built-in method for limiting the size to no larger than the working area (e.g. monitor - task bar) I think this should even be on by default with an option to disable it if someone really wants to have a window bigger than the monitor/work area size

And a configurable margin like it must be smaller than the working area by 100px horizontally and 50px vertically would be nice as well

Alternatives considered

No response

Additional context

No response