Skip to content

Commit 40226d1

Browse files
authored
Merge pull request #1427 from mathjax/issue3423
Make sure columns get new width if contents stretch more than original width. (mathjax/MathJax#3423)
2 parents 7f2843d + 7dd72aa commit 40226d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ts/output/common/Wrappers/mtable.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ export function CommonMtableMixin<
717717
//
718718
const TW = this.getTableData().W;
719719
for (const child of stretchy) {
720-
const w = child.getBBox().w;
720+
let w = child.getBBox().w;
721721
child
722722
.coreMO()
723723
.getStretchedVariant([Math.max(W, w) / child.coreRScale()]);
724+
w = child.getBBox().w;
724725
if (w > TW[i]) {
725726
TW[i] = w;
726727
}

0 commit comments

Comments
 (0)