webui
webui copied to clipboard
`webui_set_size` does not work on firefox
More details, refer to this: https://github.com/webui-dev/zig-webui/issues/13
It will work if the Firefox profile is new (first run), while starting from the second run, Firefox remember the last manually changed size and position, so it ignores the values setting by WebUI command lines.
A quick workaround is by deleting the Firefox profile on exist:
webui_delete_all_profiles();
webui_clean();
We should find a better solution for Firefox.
I'm experimenting some paths, like using user_pref("...");
. And other settings to programmatically force Firefox to use the default settings on every run instead of the manually updated size and position.