Commit d320e6e
committed
Fix incorrect size of several wasm demos
Commit 1c73144 (famous resume protocol) change the overal timing and sequence of window creation. As it happens now, when
we set_visibility() is called and we try to preserve a "browser" assigned canvas size,
we do so even for windows where we decided we want to go with the preferred size. This restores the todo/underlay/etc. demos.
With commit bcfa1ea we now end up computing current_size as (10, 10) for the slide puzzle (which has no min-width in Slint),
which differs from (0, 0). But we really shouldn't try to assign a size in the first place.1 parent bd02c22 commit d320e6e
1 file changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
910 | 912 | | |
911 | 913 | | |
912 | 914 | | |
| |||
1226 | 1228 | | |
1227 | 1229 | | |
1228 | 1230 | | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
| 1231 | + | |
1235 | 1232 | | |
1236 | 1233 | | |
1237 | 1234 | | |
| |||
1489 | 1486 | | |
1490 | 1487 | | |
1491 | 1488 | | |
1492 | | - | |
| 1489 | + | |
1493 | 1490 | | |
1494 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
1495 | 1497 | | |
1496 | | - | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1497 | 1501 | | |
1498 | 1502 | | |
1499 | 1503 | | |
| |||
1513 | 1517 | | |
1514 | 1518 | | |
1515 | 1519 | | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
0 commit comments