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
the tao and winit's window inner sizes are incorrect because we have to replace its NSView.
The reasons to replace it are because of keyboard accelerators and menu items. tao and winit control many keyboard handling methods. We couldn't find any better ways to handle these.
So we have webview.inner_size() as alternatives. Perhaps we should add documentation on why we need this method.
Describe the bug
Window size returned from
webview.window().inner_size()
does not change even if the window was resized.I'm not sure this is actually a bug or an intended behavior. Please feel free to close this issue if it is intentional.
Steps To Reproduce
Clone this repository and apply the following patch.
Then run
hello_world
example and resize the window and observe the debug prints in your terminal.Expected behavior
webview.window().inner_size()
returns the current window size.Screenshots
N/A
Platform and Versions (please complete the following information):
OS: macOS
Rustc:
rustc 1.72.1 (d5c2e9c34 2023-09-13)
Would you want to assign yourself to resolve this bug?
Additional context
I noticed
webview.inner_size()
can return the correct size so it can be used as the replacement.The text was updated successfully, but these errors were encountered: