VR button position bug when <a-scene> is nested in <div>
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
There seems to be a bug where the A-Frame canvas takes full window control regardless of the parent container size, but the VR button position is relative to the parent container size. The result is that sometimes the VR button is not visible.
- A-Frame Version: 1.04
- Platform / Device: All
- Reproducible Code Snippet or URL: glitch

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Glitch reproduction and inspect how an nested in a
sizes its canvas and places the VR button. Reproduce the issue across the stated platforms, then trace the relevant browser-facing implementation. Done means the VR button remains visible and correctly positioned when the scene is nested in a sized parent.Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100