#Webview not resizing
19 messages · Page 1 of 1 (latest)
I also called auto_resize() when building the window. it doesn't work.
it should be noted I have converted the underlaying NSWindow to NSPanel.
resize used to work, but it broke after updating the crates.
do you know the version numbers? So the versions you updated from and to (i assume you updated to latest)
current version: latest (2.5.1)
the version i ugraded from is: 2.1.1
here is a recording: of 2.1.1
okay i hoped it'd be less versions to look at x) Is the large window also an NSPanel?
yes both windows are NSPanel, using the tauri-nspanel crate.
😂 oops!
i fixed it by adding an autoresize mask to the WKWebview:
is there a tauri method/api to directly access to the webview's objc handle (WKWebview)?
like window.ns_window()
because in this hack, I assume the webview is the first item in the subviews list.
i have implemented this method for nspanel
since multiple projects in production already rely on this behavior, I'm enabling it by default to avoid introducing bugs when they update.
there's webview.with_webview that gives you that so it's a bit harder to integrate than ns_window()
Okay i see, thanks