Skip to content

Fix vector arrow positioning in CHTML. #1543 #1550

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

Merged
merged 1 commit into from
Aug 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unpacked/jax/output/CommonHTML/jax.js
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@
// something, so put them over a space and remove the space's width
//
node = node.firstChild;
var space = CHTML.Element("mjx-span",{style:{width:".25em","margin-left":"-.25em"}});
var space = CHTML.Element("mjx-box",{style:{width:".25em","margin-left":"-.25em"}});
Copy link
Member

Choose a reason for hiding this comment

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

I assume this does not have any implications on CSS behaviour?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only the desired one of making it work. :-)

The only CSS that these two set is the display value, and that is what needs to be changed. So there are no side-effects of this.

node.insertBefore(space,node.firstChild);
},
CHTMLcenterOp: function (node) {
Expand Down