Skip to content

Commit 8597321

Browse files
committed
Fix issue with super in CJS version
1 parent 7772f04 commit 8597321

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ts/output/common/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export class CommonWrapper<
456456
*
457457
* @returns {number} The container width
458458
*/
459-
get containerWidth(): number {
459+
public get containerWidth(): number {
460460
return this.parent ? this.parent.containerWidth : this.jax.containerWidth;
461461
}
462462

ts/output/common/Wrappers/mpadded.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export function CommonMpaddedMixin<
177177
if (!w.match(/^[-+]|%$/) && attributes.get('data-overflow') === 'linebreak') {
178178
return this.length2em(w);
179179
}
180-
return super.containerWidth;
180+
return this.parent.containerWidth;
181181
}
182182

183183
/**

0 commit comments

Comments
 (0)