mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-18 03:13:34 +00:00
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:
parent
1d41f0b402
commit
b90bb7bd49
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
<div id="spinner" style="position: relative;">
|
<div id="spinner" style="position: relative;">
|
||||||
<div class="spinner">Loading...</div>
|
<div class="spinner">Loading...</div>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="canvas" width="640" height="480"></canvas>
|
<canvas id="canvas" data-slint-auto-resize-to-preferred="true"></canvas>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="https://github.com/slint-ui/slint/blob/master/examples/opengl_underlay/">
|
<a href="https://github.com/slint-ui/slint/blob/master/examples/opengl_underlay/">
|
||||||
View Source Code on GitHub</a>
|
View Source Code on GitHub</a>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<div id="spinner" style="position: relative;">
|
<div id="spinner" style="position: relative;">
|
||||||
<div class="spinner">Loading...</div>
|
<div class="spinner">Loading...</div>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="canvas" width="640" height="480" unselectable="on"></canvas>
|
<canvas id="canvas" unselectable="on" data-slint-auto-resize-to-preferred="true"></canvas>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="https://github.com/slint-ui/slint/blob/master/examples/todo/">
|
<a href="https://github.com/slint-ui/slint/blob/master/examples/todo/">
|
||||||
View Source Code on GitHub</a> -
|
View Source Code on GitHub</a> -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue