Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Merge requests
  • !2075

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

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Davide P. Cervone requested to merge github/fork/dpvc/fix-tables into legacy-v2-develop Oct 28, 2018
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dpvc/fix-tables