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

Improve CSS for stretchy braces in IE and Edge #73

Merged
merged 5 commits into from Mar 5, 2018

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Dec 6, 2017

This adjusts the CSS to avoid the gaps pointed out by Neil in #64, and improves the situation for horizontal placement of extenders in Firefox (though not for Chrome).

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.

One request for clarification.

'margin-top': this.em(-He)
styles['.MJX-TEX mjx-stretchy-v[c="' + c + '"] > mjx-mid'] = {
'margin-top': this.em(-Hm/2),
'margin-bottom': this.em(-Hm/2)
Copy link
Member

Choose a reason for hiding this comment

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

Why can't the mid case from lines 407-411 be handled here?
Can we ever get a mid part without end part?
Or is it important that the styles is set earlier?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why it is in the location. Probably due to doing one part at one time and the other at later time. I've moved them to the same location and tidied up a bit.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I see why it was the way. The original CSS was for a different element, but was changed to the mid element, and I didn't catch that it could be moved earlier.

@dpvc
Copy link
Member Author

dpvc commented Feb 16, 2018

This is ready for re-review.

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

Add initial value to reduce() calls to avoid problems with empty arrays. #74
@dpvc dpvc merged commit bd1d2ca into fix-stretchy-braces Mar 5, 2018
@dpvc dpvc deleted the ie-stretchy-braces branch March 5, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants