-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Window builder physical size/position #5228
Comments
Hi, I am working on this issue. I plan to add some config fields about size and position.
|
Hi, may I ask if you need the set position pixel unit and size unit seperately or you just want a total switch? |
Ideally these functions should take https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.inner_size https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.min_inner_size https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.max_inner_size https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.position Unfortunately that would be a breaking change... so I don't really know what would be best here |
for now just add |
Hi there, I'd like to help out with this issue. Is this issue being worked on by someone else? |
Not that we know off, but after the conversation here and in #5381 i'm not sure what the wanted approach is. |
Describe the problem
There's no way to set the size and position of the window in the window builder to physical coordinates.
Describe the solution you'd like
The size and position methods should be able to accept either logical or physical units.
Alternatives considered
Setting the window size and position AFTER the window has been created, which for some reason accepts logical or physical coordinates despite the fact that the window builder doesn't? 🤔
Additional context
My use case is positioning a window on a specific monitor. This can only be done with physical units :(
The text was updated successfully, but these errors were encountered: