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

Use a new approach to aligning labels with their table rows. #1532 #1533

Merged
merged 1 commit into from
Jul 23, 2016

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jun 22, 2016

Use a new approach to aligning labels with their table rows that should reduce the round-off problems by forcing each row to the desired height, and doing the same with the labels. Resolves issue #1532 (and #1500).

…ld reduce the round-off problems by forcing each row to the desired height, and doing the same with the labels. Resolves issue mathjax#1532 (and mathjax#1500).
if (T) LABELS[i].style.marginTop = CHTML.Em(T);
T = d - lbox.d;
T = state.RH[i] - Math.max(1,lbox.h);
if (T) LABELS[i].firstChild.firstChild.style.marginTop = CHTML.Em(T);
Copy link
Member

Choose a reason for hiding this comment

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

These are all guaranteed to exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

If you mean the first child.firstchild then yes. if you mean the various array elements indexed by [i], then yes.

@pkra pkra added this to the MathJax v2.x.x milestone Jul 8, 2016
@zorkow
Copy link
Member

zorkow commented Jul 23, 2016

LGTM.

@dpvc dpvc merged commit d26341c into mathjax:develop Jul 23, 2016
@dpvc dpvc deleted the issue1532 branch July 23, 2016 19:48
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.

3 participants