slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
15.9k stars 519 forks source link

Work around sometimes missing resize event on macOS with winit #5510

Closed tronical closed 2 days ago

tronical commented 2 days ago

Fixes #5509

ogoffart commented 2 days ago

But does it work with set_size() ?

tronical commented 2 days ago

The test case of https://github.com/slint-ui/slint/issues/5489 breaks with the parent of f4085cfd133eaf5728d0b21b09ab0daa63c61dac. It doesn't work with f4085cfd133eaf5728d0b21b09ab0daa63c61dac in the sense that while the window has the correct size, the content is broken. Commit bf919d300d9cf5fa8d12be63cebb1cea990c8600 makes it actually work :-)