Examples: Emscripten: fixes minor rendering issues (#9281)

- in Firefox, scrollbar would appear => adding overflow: hidden fixes this issue
- when the canvas has the focus, Chrome draws a very small blue outline, setting it to none fixes this issue
This commit is contained in:
Yan Pujante
2026-03-05 10:35:51 -08:00
committed by ocornut
parent 9e6b888626
commit 512982d0d2
2 changed files with 7 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
<title>Dear ImGui Emscripten example</title>
<style>
body { margin: 0; background-color: black }
body { margin: 0; background-color: black; overflow: hidden; }
/* FIXME: with our GLFW example this block seems to break resizing and io.DisplaySize gets stuck */
.emscripten {
position: absolute;
@@ -26,6 +26,9 @@
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
#canvas:focus {
outline: none;
}
</style>
</head>
<body>