Skip to content

Fix \bbox problem with padding values that are decimals. (mathjax/MathJax#3568)#1503

Open
dpvc wants to merge 1 commit into
developfrom
issue3568
Open

Fix \bbox problem with padding values that are decimals. (mathjax/MathJax#3568)#1503
dpvc wants to merge 1 commit into
developfrom
issue3568

Conversation

@dpvc

@dpvc dpvc commented Jun 11, 2026

Copy link
Copy Markdown
Member

This PR fixes a problem with \bbox where padding values that are decimals can lead to NaN values. This was caused by using parseInt() instead of parseFloat(), so the fix is easy.

Resolves issue mathjax/MathJax#3568.

@dpvc dpvc requested a review from zorkow June 11, 2026 21:26
@dpvc dpvc added this to the v4.1.3 milestone Jun 11, 2026
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.47%. Comparing base (a65456c) to head (e69ef94).

Additional details and impacted files
@@            Coverage Diff             @@
##           develop    #1503     +/-   ##
==========================================
  Coverage    86.47%   86.47%             
==========================================
  Files          340      340             
  Lines        86125    86125             
  Branches      3206     4848   +1642     
==========================================
  Hits         74476    74476             
+ Misses       11649    11628     -21     
- Partials         0       21     +21     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant