Skip to content

Commit

Permalink
Improve CSS comment
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 27, 2024
1 parent 7121a49 commit a489374
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web_demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@
width: 100%;
}

/* Position canvas in center-top.
This is rather arbitrarily chosen.
In particular, it seems like both Chromium and Firefox will still align
the canvas on the physical pixel grid, which is required to get
pixel-perfect (non-blurry) rendering in egui.
See https://github.com/emilk/egui/issues/4241 for more */
/* Make canvas fill entire document: */
canvas {
margin-right: auto;
margin-left: auto;
Expand Down

0 comments on commit a489374

Please sign in to comment.