File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 489
489
ex = this . defaultEx ;
490
490
cwidth = this . defaultWidth ;
491
491
}
492
- if ( cwidth === 0 ) cwidth = this . defaultWidth ;
492
+ if ( cwidth === 0 && ! jax . CHTML . display ) cwidth = this . defaultWidth ;
493
493
if ( relwidth ) maxwidth = cwidth ;
494
494
scale = ( this . config . matchFontHeight ? ex / this . TEX . x_height / em : 1 ) ;
495
495
scale = Math . floor ( Math . max ( this . config . minScaleAdjust / 100 , scale ) * this . config . scale ) ;
Original file line number Diff line number Diff line change 671
671
jax . HTMLCSS . isHidden = true ;
672
672
ex = this . defaultEx ; em = this . defaultEm ; cwidth = this . defaultWidth ;
673
673
}
674
- if ( cwidth === 0 ) cwidth = this . defaultWidth ;
674
+ if ( cwidth === 0 && ! jax . HTMLCSS . display ) cwidth = this . defaultWidth ;
675
675
if ( relwidth ) { maxwidth = cwidth }
676
676
scale = ( this . config . matchFontHeight ? ex / this . TeX . x_height / em : 1 ) ;
677
677
scale = Math . floor ( Math . max ( this . config . minScaleAdjust / 100 , scale ) * this . config . scale ) ;
Original file line number Diff line number Diff line change 314
314
jax . SVG . isHidden = true ;
315
315
ex = this . defaultEx ; cwidth = this . defaultWidth ;
316
316
}
317
- if ( cwidth === 0 ) cwidth = this . defaultWidth ;
317
+ if ( cwidth === 0 && ! jax . SVG . display ) cwidth = this . defaultWidth ;
318
318
if ( relwidth ) { maxwidth = cwidth }
319
319
jax . SVG . ex = ex ;
320
320
jax . SVG . em = em = ex / SVG . TeX . x_height * 1000 ; // scale ex to x_height
You can’t perform that action at this time.
0 commit comments