1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

egui_web: document how to fill the full width of the browser

This commit is contained in:
Emil Ernerfeldt
2021-06-03 18:56:26 +02:00
parent 2932ff0e53
commit ec6268e4ac
3 changed files with 12 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ pub use egui_web::wasm_bindgen;
/// Install event listeners to register different input events
/// and start running the given app.
///
/// For performance reasons (on some browsers) the egui canvas does not, by default,
/// fill the whole width of the browser.
/// This can be changed by overriding [`epi::Frame::max_size_points`].
///
/// Usage:
/// ``` no_run
/// #[cfg(target_arch = "wasm32")]