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

One strut instead of two #1307

Merged
merged 2 commits into from
May 11, 2018
Merged

One strut instead of two #1307

merged 2 commits into from
May 11, 2018

Conversation

edemaine
Copy link
Member

@edemaine edemaine commented May 11, 2018

As suggested in #1287 (comment) the two struts were redundant; the formerly "bottom" strut suffices to implement both height and depth constraints.

There is a slight vertical offset in a few screenshots. My investigation suggests this might be only an improvement: it seems that the element bounding boxes of the .base element, as viewed by Chrome's inspector, is now correct (at least vertically):

New:

image

Old:

image

The bounding box of the higher elements is still weird (not tall enough), but it's a step in the right direction.

As suggested in KaTeX#1287 (comment)
the two struts were redundant; the formerly "bottom" strut suffices to
implement both height and depth constraints.
@codecov
Copy link

codecov bot commented May 11, 2018

Codecov Report

Merging #1307 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1307      +/-   ##
==========================================
- Coverage   84.25%   84.24%   -0.01%     
==========================================
  Files          61       61              
  Lines        3975     3973       -2     
  Branches      662      662              
==========================================
- Hits         3349     3347       -2     
  Misses        532      532              
  Partials       94       94
Impacted Files Coverage Δ
src/buildHTML.js 96.59% <100%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9bb48b8...5f7fa6b. Read the comment docs.

@edemaine edemaine merged commit 929b9bf into KaTeX:master May 11, 2018
@kevinbarabash
Copy link
Member

@edemaine cool! Thanks for making that change. I'm glad to see that almost all of the screenshot didn't change at all.

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.

3 participants