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

Stretched delimiter clipped in HTML-CSS output #701

Closed
dpvc opened this issue Dec 23, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@dpvc
Copy link
Member

commented Dec 23, 2013

The output of

<div style="font-size:133%">
$$
\begin{array}{c}
  \mmlToken{mo}{[}&
  \Rule{.15em}{.9em}{1em}
\end{array}
$$
</div>

has a stretched bracket that is clipped at the top and bottom in HTML-CSS output. It may be that the height and depth aren't being adjusted to accommodate the larger size of the stretched delimiter, when it stretched beyond the required size.

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 17, 2014

Davide P. Cervone
Don't clip delimiters that stretch farther than they are they suppose…
…d to. (This is handled by letting them extend beyond their bounding box, but that means they can overlap the rows above or below. Idealy, this should alter the heights of the rows, but that could require restretching rows when equalrows is set, and could lead to looping to try to get the table to stablize. Resolves issue mathjax#701 for now.

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 17, 2014

Davide P. Cervone
Prevent mo's from being stretched more often than needed (check that …
…they aren't already the right size when matching mrow size). Also, allow TeXAtom to stretch properly when part of an embellished operator. Issue mathjax#701.

@dpvc dpvc added Ready for Review and removed Investigate labels Feb 17, 2014

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Feb 17, 2014

Indeed, the problem was that the row didn't grow when a stretchy operator uses one of the fixed-size versions that is bigger than the height requested. The size of the row probably should be increased to accommodate the larger operator, but that would mean that other rows might need to be modified (e.g., if equalrows is true), and restretched to the new height. That in turn could lead to increasing the size again if those rows contain stretchy operators.

Instead, for now I've allowed the stretched operator to extend beyond the height or depth of the row. This means it could overlap neighboring rows (or if the top and bottom, it could extend outside the table). We may need a better solution in the future.

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 20, 2014

@dpvc dpvc added Merged and removed Ready for Review labels Feb 20, 2014

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Feb 20, 2014

=> Merged.

@dpvc dpvc closed this Feb 20, 2014

@dpvc dpvc added v2.4 and removed Merged labels Jun 30, 2014

@dpvc dpvc removed the Address Later label Apr 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.