Skip to content

Commit a4990f4

Browse files
committed
Add explicit style to allow IE8 to use pixelLeft to measure em's
1 parent 5d8cfc9 commit a4990f4

File tree

1 file changed

+2
-1
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+2
-1
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@
273273
//
274274
// Used in preTranslate to get scaling factors and line width
275275
//
276-
this.TestSpan = CHTML.Element("mjx-test",{},[["mjx-left-box"],["mjx-ex-box"],["mjx-right-box"]]);
276+
this.TestSpan = CHTML.Element("mjx-test",{style:{left:"1em"}},
277+
[["mjx-left-box"],["mjx-ex-box"],["mjx-right-box"]]);
277278

278279
//
279280
// Set up styles and preload web fonts

0 commit comments

Comments
 (0)