The function window.set_size(Size::Physical(PhysicalSize{width: 1920, height: 1080})).expect("Could not resize!"); does not do anything when called on this platform.
Other functions such as window.set_fullscreen(true); work as intended so the issue has something to do with the set_size function on Linux platforms.
Reproduction
Run the above code and settings in a tauri 1.2.2 app on Pop!_OS 22.04
Click a button with onClick set to onResize in order to attempt to resize the window from 1280x720 to 1920x1080
The window does not resize
Expected behavior
The window should resize itself from 1280x720 to 1920x1080.
Platform and versions
Note: Pop!_OS 22.04 comes with node 12 installed by default which does not appear to be able to run tauri. Node 19.3.0 was manually installed to
/run/user/1000/fnm_multishells/11583_1671428736077/bin/node
using fnm on the development machine.
https://github.com/Schniz/fnm
Describe the bug
I am running a tauri 1.2.2 app on Pop!_OS 22.04 (Ubuntu derivative) and have the following tauri command in my rust code:
Calling the command with the following typescript code:
Which is called by a button's onClick event.
The function
window.set_size(Size::Physical(PhysicalSize{width: 1920, height: 1080})).expect("Could not resize!");
does not do anything when called on this platform.In my tauri.conf.json I have
Other functions such as window.set_fullscreen(true); work as intended so the issue has something to do with the set_size function on Linux platforms.
Reproduction
Expected behavior
The window should resize itself from 1280x720 to 1920x1080.
Platform and versions
Note: Pop!_OS 22.04 comes with node 12 installed by default which does not appear to be able to run tauri. Node 19.3.0 was manually installed to /run/user/1000/fnm_multishells/11583_1671428736077/bin/node using fnm on the development machine. https://github.com/Schniz/fnm
Stack trace
No response
Additional context
No response