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

Propery handle placement of scripts on \vcenter, \vbox, and \vtop (mathjax/MathJax#3091) #1000

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Sep 11, 2023

This PR fixes a problem where super- and subscripts were not placed properly on the results of \vcenter, \vbox, and \vtop elements. These are implemented using mpadded nodes with data-vertical-align attributes and a vbox property to mark them as vboxes. The problem is that the getBaseCore() method should stop at an mpadded element being used as a vbox, but was continuing down into it incorrectly if there was only one child element. The fix is to stop when the mpadded has the vbox property.

Resolves issue mathjax/MathJax#3091.

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 f30ee10 into develop Sep 15, 2023
@dpvc dpvc deleted the issue3091 branch September 15, 2023 12:21
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