-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to size window dimensions with setSize
#13
Comments
I tested it using the C example, and it's working for me. We should use the debug version of WebUI to see what's going on in the logs. On the other hand, WebUI only passes the window size using the command line if the web browser supports it. Otherwise, WebUI simply runs |
@hassandraga Honestly it might be browser related. After Apparently you're (in many cases) only allowed to modify windows the size of windows opened with When you say it's working, what browser did you try it on? I'm using Firefox on MacOS Monterey. |
I test it using Chrome in Linux. |
em.. linux chrome is available with zig |
I will still test it using other browser. |
weird, zig |
I have test it with C on firefox, it really doesn't work |
I will open an new issue in |
The A quick workaround is by deleting the Firefox profile on exist: webui.deleteAllProfiles(); /// Delete all window object's web-browser profiles
webui.clean(); /// Clean all memory resources Let's then figure out a better solution for Firefox in webui-dev/webui#296. |
For a minimal repro, try this:
zig-webui/src/examples/call_js_from_zig
In neither case does
nwin.setSize(...)
actually change the window size.I'm not sure if this is a bug with this library (which essentially wraps WebUI) or with WebUI itself, but I'm posting it here just in case.
The text was updated successfully, but these errors were encountered: