-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
[bug] Using appWindow.setSize right after appWindow.setResizable doesn't resize window in Ubuntu 22.04.1 LTS #545
Comments
looks like this is the same as #302 |
Thanks. They may be tangentially related but the fix mentioned in that issue appears to have been included in tao v0.12.2, which is what I'm using. Furthermore, I've noticed problems even when I don't set @keiya01 I've seen your PR for the |
I will move this to tao since I can reproduce it, seems the fix did nothing. |
Maybe we should remove |
unfortunately not. I tried so many different combinations and got nothing. It seems like if |
I found |
The problem with |
…#553) * Try cargo r --example resizable and press space * Set dault size to (1, 1) * Remove all set_size_request * Add platform-specific note to set_resizable * Add change file * cargo fmt Co-authored-by: Wu Yu Wei <wusyong9104@gmail.com>
Describe the bug
In my
tauri.conf.json
, I've set my window'sresizable
value tofalse
because I did not want users to be able to resize the window using their cursor. I did, however, want to support users resizing the window to specific resolutions (e.g. 1440x900) via a dropdown. So when the user triggers a resize, I run the following code:On Ubuntu 22.04 LTS with no graphical tweaks, the window does not resize after running this code, however. Even when I run the same logic in rust using
tauri:window
, I still run into the same issue.Interestingly, if I remove the last line (
setResizable(false)
), resizing works only if the logical size is greater than or equal to the height and width specified in mytauri.conf.json
. Please scroll down this issue post to see my fulltauri.conf.json
.If I set my
tauri.conf.json
to specify"resizable": true
and remove thesetResizable
lines in my code, resizing works as expected.Reproduction
See description
Expected behavior
See description
Platform and versions
Stack trace
N/A (none produced)
Additional context
Here is my
tauri.conf.json
:The text was updated successfully, but these errors were encountered: