#WebviewWindow inner size inconsistency on Windows

2 messages · Page 1 of 1 (latest)

calm knot
#

After updating from a RC Tauri version to the latest, I've noticed the inner size behaves differently on Windows when the window is undecorated but has shadows enabled.
I believe it's caused by the change here: https://github.com/tauri-apps/tao/pull/993 .

When creating the window (using WebviewWindowBuilder) I set the inner size to 300 x 360. But it ends up as 312 x 395.
The window on the left side in the first screenshot was set to 288 x 325.
From the second attached screenshot you can see that the inner size is the size the window would've had if decorations were enabled.

I'm not sure what the best way to work around it is, other than just using a different size on Windows or subtracting the titlebar height on from it on window creation.

GitHub

ref: rust-windowing/winit#3712
closes tauri-apps/tauri#11538

river vapor
#

should be fixed on the next release