Fix problem with dahsed rowlines in mtable caused by changing to px for rules (and using top border for horizontal lines)

This commit is contained in:
Davide P. Cervone 2015-08-25 16:55:33 -04:00
parent 1abb78e9c9
commit c3f4606576

View File

@ -405,11 +405,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
line = HTMLCSS.createRule(stack,1.25/HTMLCSS.em,0,fW); HTMLCSS.addBox(stack,line);
line.bbox = {h:1.25/HTMLCSS.em, d:0, w:fW, rw:fW, lw:0};
HTMLCSS.placeBox(line,0,y - D[i] - (dy-D[i]-H[i+1])/2,true);
if (RLINES[i] === "dashed" || hasRelativeWidth) {
line.style.borderTop = line.style.height+" "+RLINES[i]; line.style.height = 0;
line.style.width = line.style.borderLeftWidth; line.style.borderLeft = "";
if (hasRelativeWidth) {line.style.width = "100%"}
}
if (RLINES[i] === "dashed") line.style.borderTopStyle = "dashed";
if (hasRelativeWidth) line.style.width = "100%"
}
y -= dy;
}