mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
egui_web: document how to fill the full width of the browser
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user