#Webview not resizing

19 messages · Page 1 of 1 (latest)

tender ridge
#

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.

gusty stag
#

do you know the version numbers? So the versions you updated from and to (i assume you updated to latest)

tender ridge
#

current version: latest (2.5.1)

#

the version i ugraded from is: 2.1.1

gusty stag
#

okay i hoped it'd be less versions to look at x) Is the large window also an NSPanel?

tender ridge
#

yes both windows are NSPanel, using the tauri-nspanel crate.

tender ridge
#

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()

tender ridge
tender ridge
#

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.

gusty stag
tender ridge
#

Okay i see, thanks