-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
A-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inO-WebSpecific to web (WASM) buildsSpecific to web (WASM) builds
Description
Bevy version
0.16.1
What you did
I specify a specific width/height on an HTML canvas
<canvas id="bevy-canvas" width="640" height="360"></canvas>,
I set the canvas id on my primary window:
app.add_plugins((DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
canvas: Some("#bevy-canvas".into()),
..default()
}),
..default()
})What went wrong
Bevy resized my canvas to 1280x720:
Additional information
Repository reproducing the issue https://github.com/rectalogic/bevy_canvas_size
Metadata
Metadata
Assignees
Labels
A-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inO-WebSpecific to web (WASM) buildsSpecific to web (WASM) builds