1
0

Fix 2D control panel positioning relative to canvas

- Fix panel positioning calculation to account for panel height
- Position panel bottom edge 10% from canvas bottom (not container)
- Ensure panel stays within canvas bounds when WebGL canvas is active
- Update positioning on window resize for responsive behavior
- Resolves issue where panel appeared partially below canvas
This commit is contained in:
Michael Verdi
2025-07-31 19:24:56 -05:00
parent dbaefeb337
commit da4ca420f6
3 changed files with 39 additions and 42 deletions

View File

@@ -31,7 +31,7 @@
<source src="sbs-video.mp4" type="video/mp4">
</video>
<button id="playBtn" aria-label="Play video">
<img src="play.svg" alt="Play">
<img src="play.png" alt="Play">
</button>
<div id="panel">
<div id="status">