Skip to content

Commit 8f9d982

Browse files
committed
Scale displayIndent to HTML size, since the shift is outside the font-size scaling. This was required by the change to issue 769. (Issue #768.)
1 parent cd235d5 commit 8f9d982

File tree

1 file changed

+2
-2
lines changed
  • unpacked/jax/output/HTML-CSS

1 file changed

+2
-2
lines changed

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,9 +2882,9 @@
28822882
if (values.indentalign === MML.INDENTALIGN.AUTO) {values.indentalign = this.displayAlign}
28832883
if (values.indentshiftfirst !== MML.INDENTSHIFT.INDENTSHIFT) {values.indentshift = values.indentshiftfirst}
28842884
if (values.indentshift === "auto") {values.indentshift = "0"}
2885-
var shift = HTMLCSS.length2em(values.indentshift,1,HTMLCSS.cwidth);
2885+
var shift = HTMLCSS.length2em(values.indentshift,1,HTMLCSS.scale*HTMLCSS.cwidth);
28862886
if (this.displayIndent !== "0") {
2887-
var indent = HTMLCSS.length2em(this.displayIndent,1,HTMLCSS.cwidth);
2887+
var indent = HTMLCSS.length2em(this.displayIndent,1,HTMLCSS.scale*HTMLCSS.cwidth);
28882888
shift += (values.indentalign === MML.INDENTALIGN.RIGHT ? -indent : indent);
28892889
}
28902890
node.style.textAlign = values.indentalign;

0 commit comments

Comments
 (0)