Skip to content

Commit f0abcdc

Browse files
lee-orrjakobhellermann
authored andcommitted
ensure the body fills the entire view
Adding set width/height to the body & html ensures that they fill the entire view. This ensures that you can force bevy to fill the entire page using: ```rust .insert_resource(WindowDescriptor { fit_canvas_to_parent: true, ..default() }) ```
1 parent fc6ff38 commit f0abcdc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

static/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
html {
1414
margin: 0;
1515
padding: 0;
16+
width: 100vw;
17+
height: 100vh;
1618
}
1719

1820
canvas {

0 commit comments

Comments
 (0)