This PR ensures the first animation frame happens _after_ the resize observer has had a chance to do its job. * Closes https://github.com/emilk/egui/issues/4622 The first commit contains some `log` calls to observe the changed behavior: Before: ``` [eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [300.0 150.0] [eframe::web::events] eframe/src/web/events.rs:633: ResizeObserver canvas=[300.0 150.0] to=(1920, 993) [eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0] [eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0] ``` After: ``` [eframe::web::events] eframe/src/web/events.rs:633: ResizeObserver canvas=[300.0 150.0] to=(1920, 993) [eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0] [eframe::web::app_runner] eframe/src/web/app_runner.rs:191: LOGIC [1920.0 993.0] ``` |
||
|---|---|---|
| .. | ||
| native | ||
| web | ||
| epi.rs | ||
| icon_data.rs | ||
| lib.rs | ||
| stopwatch.rs | ||