Skip to content

Commit

Permalink
Merge pull request #462 from mathjax/issue2381
Browse files Browse the repository at this point in the history
Make unitless linethickness be a multiple of the default size.  (mathjax/MathJax#2381)
  • Loading branch information
dpvc committed Apr 3, 2020
2 parents 0153ed1 + 920c361 commit 48e2a21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ts/output/chtml/Wrappers/mfrac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class CHTMLmfrac<N, T, D> extends CommonMfracMixin<CHTMLConstructor<any,
if (bevelled) {
this.makeBevelled(display);
} else {
const thickness = this.length2em(String(linethickness));
const thickness = this.length2em(String(linethickness), .06);
if (thickness === 0) {
this.makeAtop(display);
} else {
Expand Down
2 changes: 1 addition & 1 deletion ts/output/common/Wrappers/mfrac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function CommonMfracMixin<T extends WrapperConstructor>(Base: T): MfracCo
if (bevelled) {
this.getBevelledBBox(bbox, display);
} else {
const thickness = this.length2em(String(linethickness));
const thickness = this.length2em(String(linethickness), .06);
w = -2 * this.pad;
if (thickness === 0) {
this.getAtopBBox(bbox, display);
Expand Down
2 changes: 1 addition & 1 deletion ts/output/svg/Wrappers/mfrac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SVGmfrac<N, T, D> extends CommonMfracMixin<SVGConstructor<any, any,
if (bevelled) {
this.makeBevelled(display);
} else {
const thickness = this.length2em(String(linethickness));
const thickness = this.length2em(String(linethickness), .06);
if (thickness === 0) {
this.makeAtop(display);
} else {
Expand Down

0 comments on commit 48e2a21

Please sign in to comment.