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

Properly handle 'fit' columns in percentage-width tables. #2075

Merged
merged 1 commit into from Feb 17, 2020

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Oct 28, 2018

Without this, tables with width equal to a percentage that have column widths that are fit will not have the fit columns stretch properly.

A test case is:

<math display="block">
  <mtable width="100%" columnwidth="3em fit 3em">
    <mtr>
      <mtd mathbackground="red"><mi>x</mi></mtd>
      <mtd mathbackground="yellow"><mi>x</mi></mtd>
      <mtd mathbackground="red"><mi>x</mi></mtd>
    </mtr>
  </mtable>
</math>

Without the patch, the two outer (red) cells will be too wide. With the patch, the inner (yellow) cell will stretch to fill all the extra space.

@dpvc dpvc changed the base branch from develop to legacy-v2-develop February 17, 2020 21:17
@dpvc dpvc merged commit a8c085c into mathjax:legacy-v2-develop Feb 17, 2020
@dpvc dpvc deleted the fix-tables branch February 17, 2020 21:18
@dpvc dpvc added this to the v2.7.8 milestone Feb 18, 2020
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.

None yet

1 participant