Skip to content

Commit dcae9f2

Browse files
committed
Properly handle table heights and widths with lines but not frames.
1 parent 6f177ca commit dcae9f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mathjax3-ts/output/chtml/Wrappers/mtable.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class CHTMLmtable<N, T, D> extends CHTMLWrapper<N, T, D> {
250250
} else {
251251
height = H.concat(D, this.rLines, this.rSpace).reduce((a, b) => a + b, 0);
252252
}
253-
height += (this.frame ? .14 : 0) + 2 * this.fSpace[1];
253+
height += (this.frame ? .14 + 2 * this.fSpace[1] : 0);
254254
//
255255
// Get the widths of all columns (explicit width or computed width)
256256
//
@@ -261,8 +261,7 @@ export class CHTMLmtable<N, T, D> extends CHTMLWrapper<N, T, D> {
261261
// Get the expected width of the table
262262
//
263263
width = CW.concat(this.cLines, this.cSpace).reduce((a, b) => a + b, 0)
264-
+ (this.frame ? .14 : 0)
265-
+ 2 * this.fSpace[0];
264+
+ (this.frame ? .14 + 2 * this.fSpace[0] : 0);
266265
//
267266
// If the table width is not 'auto', determine the specified width
268267
// and pick the larger of the specified and computed widths.

0 commit comments

Comments
 (0)