Wasm Demos: fix size of the canvas

Harmonize demos to use `data-slint-auto-resize-to-preferred="true"`.
Otherwise it seems like they are using the minimum size now which is way
too small for these demos
This commit is contained in:
Olivier Goffart 2023-12-01 09:40:17 +01:00
parent 1d41f0b402
commit b90bb7bd49
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
<div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div>
</div>
<canvas id="canvas" width="640" height="480"></canvas>
<canvas id="canvas" data-slint-auto-resize-to-preferred="true"></canvas>
<p class="links">
<a href="https://github.com/slint-ui/slint/blob/master/examples/opengl_underlay/">
View Source Code on GitHub</a>