Don't use borders on background colors; fix error with recent changes to linebreaking (spacelimit was in em's but should be in em's*1000)
This commit is contained in:
parent
104775c795
commit
f3ed39a9ad
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -414,7 +414,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
// use it to modify the default penalty
|
||||
//
|
||||
var linebreak = PENALTY[values.linebreak||MML.LINEBREAK.AUTO];
|
||||
if (values.linebreak === MML.LINEBREAK.AUTO && w >= PENALTY.spacelimit)
|
||||
if (values.linebreak === MML.LINEBREAK.AUTO && w >= PENALTY.spacelimit*1000)
|
||||
{linebreak = [(w+PENALTY.spaceoffset)*PENALTY.spacefactor]}
|
||||
if (!(linebreak instanceof Array)) {
|
||||
// for breaks past the width, don't modify penalty
|
||||
|
|
|
@ -1093,7 +1093,7 @@
|
|||
var g = SVG.Element("g"); g.appendChild(svg.element);
|
||||
svg.element = g; svg.removable = true;
|
||||
}
|
||||
svg.Add(BBOX.RECT(svg.h,svg.d,svg.w,{fill:values.background}),0,0,false,true);
|
||||
svg.Add(BBOX.RECT(svg.h,svg.d,svg.w,{fill:values.background,stroke:"none"}),0,0,false,true)
|
||||
}
|
||||
//
|
||||
// Add borders
|
||||
|
|
Loading…
Reference in New Issue
Block a user