You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My hardware is compatible and my graphics drivers are up-to-date.
What happened?
When building both tour and my own app on master, they now get rendered into a web canvas. However, the web canvas is a fixed size of 1024x768. Oddly, the canvas also doesn't get rendered until the mouse is hovered over it. This also seems to happen when rendered on both windows and linux.
After a discussion with hecjr, I realized this problem is probably on iced rather than iced_web as it uses a canvas. So I moved the issue to here.
What is the expected behavior?
The canvas should be resized to fit the screen.
Version
master
Operative System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered:
Some asides I found while diving into this and what I'll document here.
The current system is currently bound by winit's implementation of the window in WASM. Manually resizing the canvas element doesn't work, so using the inner Action::Window(Action::Resize) to do so is needed. The code needed to fire the command is as such:
The only thing I haven't figured out at this point is getting text inputs to work on mobile (no keyboard pops up) and how to impl a subscription that sends a message on onresize. The TODO example works otherwise.
Is there an existing issue for this?
Is this issue related to iced?
What happened?
When building both tour and my own app on master, they now get rendered into a web canvas. However, the web canvas is a fixed size of 1024x768. Oddly, the canvas also doesn't get rendered until the mouse is hovered over it. This also seems to happen when rendered on both windows and linux.
After a discussion with hecjr, I realized this problem is probably on
iced
rather thaniced_web
as it uses a canvas. So I moved the issue to here.What is the expected behavior?
The canvas should be resized to fit the screen.
Version
master
Operative System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: