You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A follow up to this other issue, which was deemed closed a while back: #668
Setting the canvas width to 100% in the index.html page as noted in that issue appears to no longer work on Chrome v118.0.5993.70.
My css on index.html follows the hello world example:
Using the web inspector I saw my canvas was being automatically assigned a style on the element level, <canvas id="webgl" tabindex="1" style="outline: none; width: 857px; height: 998px;" width="1071" height="1248"></canvas>
So I dug into the code and found this code in GlDriver.resize():
I can confirm this gets hit and canvas.style.width is an empty string, so my css is now ignored. If I comment out this style change, the canvas is correctly assigned the 100% width from my css. This code is almost a decade old, though; did some other change make it so this canvas.style.width value is now an empty string when it wasn't previously?
The text was updated successfully, but these errors were encountered:
A follow up to this other issue, which was deemed closed a while back: #668
Setting the canvas width to 100% in the index.html page as noted in that issue appears to no longer work on Chrome v118.0.5993.70.
My css on index.html follows the hello world example:
Using the web inspector I saw my canvas was being automatically assigned a style on the element level,
<canvas id="webgl" tabindex="1" style="outline: none; width: 857px; height: 998px;" width="1071" height="1248"></canvas>
So I dug into the code and found this code in
GlDriver.resize()
:I can confirm this gets hit and canvas.style.width is an empty string, so my css is now ignored. If I comment out this style change, the canvas is correctly assigned the 100% width from my css. This code is almost a decade old, though; did some other change make it so this canvas.style.width value is now an empty string when it wasn't previously?
The text was updated successfully, but these errors were encountered: