Skip to content

call resetDimensions on Text when we update the label #147

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

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

zgalant
Copy link
Member

@zgalant zgalant commented Nov 17, 2022

call resetDimensions on Text when we update the label with setText or setLabel.

fixes #145

Summary

Fixes a bug that doesn't reset the dimensions of a Text object when we change the label.

Checklist

  • npm test passes
  • Unit tests are included / updated
  • Documentation has been updated where relevant (n/a - it's behind the scenes)

Once this goes live and is imported into the CodeHS repo, we can test at https://codehs.com/sandbox/id/texttester-NWPhxW

(replaces #146)

@zgalant zgalant merged commit a94a406 into main Nov 18, 2022
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

Successfully merging this pull request may close these issues.

Calling setText is not resetting the dimensions of the text object
1 participant