You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling window.inner_size() always return the same wrong answer on mac (presumably whatever the window started as).
This makes implementing window size restore difficult since we can only set the inner_size of the window, but the outer_size works properly.
Here's me attempting to use it in dioxus. We're able to catch the size from the resize event, which solves the problem I was trying to solve, but is a hacky solution in lieu of this actually working.
Steps To Reproduce
Resize the window
call .inner_size()
doesn't work
The text was updated successfully, but these errors were encountered:
Hi, are you calling inner_size() from Tauri window API or from tao?
It looks fine with tao only (from multithreaded example in tao). For Tauri, there is an issue that has already been fixed recently tauri-apps/tauri#9236
Describe the bug
Calling window.inner_size() always return the same wrong answer on mac (presumably whatever the window started as).
This makes implementing window size restore difficult since we can only set the inner_size of the window, but the outer_size works properly.
Here's me attempting to use it in dioxus. We're able to catch the size from the resize event, which solves the problem I was trying to solve, but is a hacky solution in lieu of this actually working.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: