slint/examples/plotter
Olivier Goffart 0359071b1e
Winit initial size adjustments and wasm size fixes
Following the winit 0.29 merge, a few adjustments are in order:

 - Make slint::Window.set_size() before show keep the size
 - on wasm, attempt to keep the size of the canvas from CSS
 - on wasm, one must set the width and height explicitly on the canvas
   otherwise there is wierd scaling
 - on wasm, we can't set None as maximum or minimum size otherwise winit
   panics
 - It seems that the hack we had to keep the size in range is no longer
   necessary
 - The hack in the slide puzzle can be removed. (but unfortunately it
   doesn't follow resizes

Unfortunatelly we always call set_inner_size to avoid infinite loop when
the css properties are not specificed, so this will override layouts

Also we don't default anymore to the preferred size

* Update internal/backends/winit/winitwindowadapter.rs
2023-10-24 15:28:18 +02:00
..
Cargo.toml Bump version number to 1.3.0 2023-09-05 15:46:36 +02:00
index.html Winit initial size adjustments and wasm size fixes 2023-10-24 15:28:18 +02:00
main.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
plotter.slint Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
wasm_backend.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00