SText.updateMeasuredBounds() called getBounds() which returns a defensive copy (new Rectangle(this.bounds)), then called setSize() on that copy. The internal bounds field was never updated.
Fix
Use the protected bounds field directly instead of getBounds().
Tests
Added 4 regression tests to STextTest verifying that updateMeasuredBounds() actually persists to getBounds().
Closes #27
## Problem
SText.updateMeasuredBounds() called getBounds() which returns a defensive copy (new Rectangle(this.bounds)), then called setSize() on that copy. The internal bounds field was never updated.
## Fix
Use the protected bounds field directly instead of getBounds().
## Tests
Added 4 regression tests to STextTest verifying that updateMeasuredBounds() actually persists to getBounds().
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #27
Problem
SText.updateMeasuredBounds() called getBounds() which returns a defensive copy (new Rectangle(this.bounds)), then called setSize() on that copy. The internal bounds field was never updated.
Fix
Use the protected bounds field directly instead of getBounds().
Tests
Added 4 regression tests to STextTest verifying that updateMeasuredBounds() actually persists to getBounds().
a8b908ca1dto873f5d2711