Skip to content

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

2 participants