Skip to content

Commit

Permalink
Temporary workaround for canvas' width CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
asdqwe committed Nov 5, 2024
1 parent b47fffb commit 201a106
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
canvas.emscripten {
border: 0px none;
background: black;
width: 100%;
/* width: 100%; */
}

.spinner {
Expand Down Expand Up @@ -285,6 +285,10 @@
}

statusElement.innerHTML = text;

// Temporary workaround for "canvas.emscripten { width: 100%; }" CSS not working with current emscripten (3.1.70)
// Revert this change when the issue is fixed upstream
document.getElementById('canvas').style.width = '100%';
},
totalDependencies: 0,
monitorRunDependencies: function(left) {
Expand Down

0 comments on commit 201a106

Please sign in to comment.