File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1325
1325
} ,
1326
1326
1327
1327
SVGcanStretch : function ( direction ) {
1328
- if ( this . isEmbellished ( ) ) { return this . Core ( ) . SVGcanStretch ( direction ) }
1329
- return false ;
1328
+ var can = false ;
1329
+ if ( this . isEmbellished ( ) ) {
1330
+ var core = this . Core ( ) ;
1331
+ if ( core && core !== this ) {
1332
+ can = core . SVGcanStretch ( direction ) ;
1333
+ if ( can && core . forceStretch ) { this . forceStretch = true }
1334
+ }
1335
+ }
1336
+ return can ;
1330
1337
} ,
1331
1338
SVGstretchV : function ( h , d ) { return this . toSVG ( h , d ) } ,
1332
1339
SVGstretchH : function ( w ) { return this . toSVG ( w ) } ,
1425
1432
CoreParent : function ( ) {
1426
1433
var parent = this ;
1427
1434
while ( parent && parent . isEmbellished ( ) &&
1428
- parent . CoreMO ( ) === this && ! parent . isa ( MML . math ) ) { parent = parent . Parent ( ) }
1435
+ parent . CoreMO ( ) === this && ! parent . isa ( MML . math ) ) { parent = parent . Parent ( ) }
1429
1436
return parent ;
1430
1437
} ,
1431
1438
CoreText : function ( parent ) {
1486
1493
this . SVGhandleColor ( svg ) ;
1487
1494
delete this . svg . element ;
1488
1495
this . SVGsaveData ( svg ) ;
1496
+ svg . stretched = true ;
1489
1497
return svg ;
1490
1498
} ,
1491
1499
SVGstretchH : function ( w ) {
1502
1510
this . SVGhandleColor ( svg ) ;
1503
1511
delete this . svg . element ;
1504
1512
this . SVGsaveData ( svg ) ;
1513
+ svg . stretched = true ;
1505
1514
return svg ;
1506
1515
}
1507
1516
} ) ;
You can’t perform that action at this time.
0 commit comments