Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text not updating geometry/layout when text is updated #2764

Closed
ngokevin opened this issue Jun 13, 2017 · 0 comments
Closed

text not updating geometry/layout when text is updated #2764

ngokevin opened this issue Jun 13, 2017 · 0 comments

Comments

@ngokevin
Copy link
Member

Description:

Given a text container <a-entity text geometry="primitive: plane; height: auto" material>, continually update text.value with new lines. The height of the plane should automatically update, but it seems it might be stuck at the initial height of the text.

  • A-Frame Version: 0.5.0 + master
  • Platform / Device: desktop
brycethomas added a commit to brycethomas/aframe that referenced this issue Oct 9, 2023
The plane width/height was being calculated when the text value was first set,
but would not update when the text changed.

Documentation has also been updated to advise using `0` rather than `auto`
for autoscaling behavior.  This is based on the the comment
[here](aframevr#2837 (comment))
suggesting that `auto` is not a valid value for geometry (NaN is falsy, so it
happened to still work).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant