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:
Davide P. Cervone 2012-02-16 09:16:13 -05:00
parent 104775c795
commit f3ed39a9ad
5 changed files with 5 additions and 5 deletions

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

View File

@ -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

View File

@ -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