etiennepinchon/aframe-material

Setting a position seems to override html 'position'

Opened this issue · 2 comments

Ran into an issue where I couldn't set the position of the keyboard. When setting it in html, it always appeared in the same place.

Commenting out:

this.el.setAttribute("position", "-1.5 -0.3 -2");

in the aframe-materials.js allowed me to set a position in html that seems to stick for all the component drawings, refreshes, etc. I'd suggest not setting a default position to allow folks to choose one in html.

Same issue with Toast

Can workaround with a wrapper entity.

<a-entity position="0 0 -1"><a-keyboard></a-keyboard></a-entity>