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 incorrect positioning of root in mroot. (mathjax/MathJax#2347) #451

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Mar 5, 2020

The height of the root was not taking the correct depth into account (it used the depth of the surd character, but that is being shifted vertically, so doesn't correspond to the actual baseline). This required passing some more information to the functions that compute the information used in the bounding boxes, which accounts for most of the changes here.

Without this patch, \sqrt[n]{\Rule{.5em}{.75em}{0em}} will have its root too low, while \sqrt[n]{\Rule{.5em}{0em}{1em}} will be too high.

Resolves issue mathjax/MathJax#2347.

@dpvc dpvc requested a review from zorkow March 5, 2020 15:40
@dpvc dpvc added this to the 3.0.2 milestone Mar 21, 2020
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit 309fa07 into develop Mar 30, 2020
@dpvc dpvc deleted the issue2347 branch March 30, 2020 14:16
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.

None yet

2 participants