File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2616
2616
this . data [ i ] . HTMLcanStretch ( "Horizontal" ) ) ;
2617
2617
} else {
2618
2618
stretch [ i ] = this . data [ i ] . HTMLcanStretch ( "Horizontal" ) ;
2619
+ children [ i ] . style . paddingLeft = children [ i ] . style . paddingRight = "" ;
2619
2620
}
2620
2621
}
2621
2622
}
2630
2631
if ( D == null && HW != null ) { W = HW } else if ( W == - HTMLCSS . BIGDIMEN ) { W = WW }
2631
2632
for ( i = WW = 0 , m = this . data . length ; i < m ; i ++ ) { if ( this . data [ i ] ) {
2632
2633
box = boxes [ i ] ;
2633
- if ( stretch [ i ] ) { box . bbox = this . data [ i ] . HTMLstretchH ( box , W ) . bbox }
2634
+ if ( stretch [ i ] ) {
2635
+ box . bbox = this . data [ i ] . HTMLstretchH ( box , W ) . bbox ;
2636
+ if ( i !== this . base )
2637
+ { children [ i ] . style . paddingLeft = children [ i ] . style . paddingRight = "" }
2638
+ }
2634
2639
if ( box . bbox . w > WW ) { WW = box . bbox . w }
2635
2640
} }
2636
2641
var t = HTMLCSS . TeX . rule_thickness * this . mscale , factor = HTMLCSS . FONTDATA . TeX_factor ;
Original file line number Diff line number Diff line change 1840
1840
boxes [ i ] = this . SVGdataStretched ( i , HW , D ) ;
1841
1841
stretch [ i ] = ( D != null || HW == null ) && this . data [ i ] . SVGcanStretch ( "Horizontal" ) ;
1842
1842
} else {
1843
- boxes [ i ] = this . data [ i ] . toSVG ( ) ;
1843
+ boxes [ i ] = this . data [ i ] . toSVG ( ) ; boxes [ i ] . x = 0 ; delete boxes [ i ] . X ;
1844
1844
stretch [ i ] = this . data [ i ] . SVGcanStretch ( "Horizontal" ) ;
1845
1845
}
1846
1846
if ( boxes [ i ] . w > WW ) { WW = boxes [ i ] . w }
1849
1849
}
1850
1850
if ( D == null && HW != null ) { W = HW } else if ( W == - SVG . BIGDIMEN ) { W = WW }
1851
1851
for ( i = WW = 0 , m = this . data . length ; i < m ; i ++ ) { if ( this . data [ i ] ) {
1852
- if ( stretch [ i ] ) { boxes [ i ] = this . data [ i ] . SVGstretchH ( W ) }
1852
+ if ( stretch [ i ] ) {
1853
+ boxes [ i ] = this . data [ i ] . SVGstretchH ( W ) ;
1854
+ if ( i !== this . base ) { boxes [ i ] . x = 0 ; delete boxes [ i ] . X }
1855
+ }
1853
1856
if ( boxes [ i ] . w > WW ) { WW = boxes [ i ] . w }
1854
1857
} }
1855
1858
var t = SVG . TeX . rule_thickness * this . mscale ;
You can’t perform that action at this time.
0 commit comments