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

Fix: Text bounds calculation with padding #10503

Merged
merged 1 commit into from May 14, 2024
Merged

Fix: Text bounds calculation with padding #10503

merged 1 commit into from May 14, 2024

Conversation

GoodBoyDigital
Copy link
Member

@GoodBoyDigital GoodBoyDigital commented May 1, 2024

Description of change

When getting the bounds of text or using width / height. the padding was not being taken into account on the bottom and right sides. Easy fix, with test!

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

fixes #10500

Copy link

codesandbox-ci bot commented May 1, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e942b14:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie changed the title Text - fix bounds calculation with padding Fix: Text bounds calculation with padding May 8, 2024
@Zyie Zyie added ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t v8 labels May 8, 2024
@Zyie Zyie added this pull request to the merge queue May 14, 2024
Merged via the queue into dev with commit 6d4b8e2 May 14, 2024
4 checks passed
@Zyie Zyie deleted the bugfix/text-padding branch May 14, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t v8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: 8.1.0 Text bounds with padding
3 participants