File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,13 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
178
178
//
179
179
// get em sizes (taken from HTMLCSS.preTranslate)
180
180
//
181
- var emex = tip . insertBefore ( HTMLCSS . EmExSpan . cloneNode ( true ) , tip . firstChild ) ;
182
- var ex = emex . firstChild . offsetHeight / 60 ,
183
- em = emex . lastChild . firstChild . offsetHeight / 60 ;
181
+ var emex = tip . insertBefore ( HTMLCSS . TestSpan . cloneNode ( true ) , tip . firstChild ) ;
182
+ var ex = emex . childNodes [ 1 ] . offsetHeight / 60 ,
183
+ em = emex . childNodes [ 2 ] . offsetHeight / 60 ;
184
+ emex . parentNode . removeChild ( emex ) ;
184
185
HTMLCSS . em = HTMLCSS . outerEm = MML . mbase . prototype . em = em ;
185
186
var scale = Math . floor ( Math . max ( HTMLCSS . config . minScaleAdjust / 100 , ( ex / HTMLCSS . TeX . x_height ) / em ) * HTMLCSS . config . scale ) ;
186
187
tip . firstChild . style . fontSize = scale + "%" ;
187
- emex . parentNode . removeChild ( emex ) ;
188
188
189
189
var stack = HTMLCSS . createStack ( tip . firstChild . firstChild ) ;
190
190
var box = HTMLCSS . createBox ( stack ) ;
Original file line number Diff line number Diff line change 869
869
//
870
870
// get em sizes (taken from HTMLCSS.preTranslate)
871
871
//
872
- var emex = span . appendChild ( this . EmExSpan . cloneNode ( true ) ) ;
873
- var em = emex . lastChild . firstChild . offsetHeight / 60 ;
872
+ var emex = span . appendChild ( this . TestSpan . cloneNode ( true ) ) ;
873
+ var em = emex . childNodes [ 2 ] . offsetHeight / 60 ;
874
874
this . em = MML . mbase . prototype . em = em ;
875
875
this . outerEm = em / jax . HTMLCSS . scale ;
876
876
emex . parentNode . removeChild ( emex ) ;
Original file line number Diff line number Diff line change 493
493
//
494
494
// get em size (taken from this.preTranslate)
495
495
//
496
- var emex = span . appendChild ( this . ExSpan . cloneNode ( true ) ) ;
497
- var ex = emex . firstChild . offsetHeight / 60 ;
496
+ var emex = span . appendChild ( this . TestSpan . cloneNode ( true ) ) ;
497
+ var ex = emex . childNodes [ 1 ] . offsetHeight / 60 ;
498
498
this . em = MML . mbase . prototype . em = ex / SVG . TeX . x_height * 1000 ; this . ex = ex ;
499
499
this . linebreakWidth = jax . SVG . lineWidth ; this . cwidth = jax . SVG . cwidth ;
500
500
emex . parentNode . removeChild ( emex ) ;
You can’t perform that action at this time.
0 commit comments