commit c3f4606576723d70dbad0554982fdc272376887b
parent 1abb78e9c93786e5faa441fe506d96a7bbf2a205
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 25 Aug 2015 16:55:33 -0400
Fix problem with dahsed rowlines in mtable caused by changing to px for rules (and using top border for horizontal lines)
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/autoload/mtable.js b/unpacked/jax/output/HTML-CSS/autoload/mtable.js
@@ -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;
}