Anyone Else's Rendering Broken? #8500
Unanswered
RomanianBusinessman
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I've never actually run any Slint stuff as WASM through a browser, but I want to say I saw someone else have this problem and you have to set the size in the HTML or Javascript or something for the page that's rendering it? I may be completely wrong, but maybe that will point you in the right direction. Edit: I believe this is what I remember seeing: #7155 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A few days ago I made a simple calculator app in Slint with Rust. I thought it would be cool to compile it to WASM and then to serve the GUI, using exactly the same approach as used in the memory game tutorial. The code does work, it runs on local host just fine, but the GUI is completely messed up. The GUI is truncated, and the button activation points are not aligned with the buttons on screen. I tried to scale the canvas to fit the entire page, but that doesn't seem to affect it. I'm not sure if it's a skill issue on my part, or if I wrote a weird GUI, or if it's some other sort of bug. I have attached some images to help understand what "messed up GUI" means.
This is what it should look like

This is what it is rendering to

Beta Was this translation helpful? Give feedback.
All reactions