aframevr / aframevr/aframe

VR button position bug when <a-scene> is nested in <div>

Open
#4,517 2 comments 0 reactions 0 assignees View on GitHub

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

2020-03-08_13-41-02

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.