commit 5c8919bc3cf0084465920bacaa8211ab2f76cf29
parent 0891402b888237944e451de2c9e7e6307e3ebf31
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 29 Apr 2013 16:01:33 -0400
Merge branch 'issue443' into develop
Resolves issue #443.
Diffstat:
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/config.js b/unpacked/jax/output/HTML-CSS/config.js
@@ -24,7 +24,7 @@
MathJax.OutputJax["HTML-CSS"] = MathJax.OutputJax({
id: "HTML-CSS",
- version: "2.1.2",
+ version: "2.1.3",
directory: MathJax.OutputJax.directory + "/HTML-CSS",
extensionDir: MathJax.OutputJax.extensionDir + "/HTML-CSS",
autoloadDir: MathJax.OutputJax.directory + "/HTML-CSS/autoload",
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
@@ -814,6 +814,11 @@
if (Math.abs(m) < .0006) {return "0em"}
return m.toFixed(3).replace(/\.?0+$/,"") + "em";
},
+ EmRounded: function (m) {
+ m = (Math.round(m*HTMLCSS.em)+.05)/HTMLCSS.em;
+ if (Math.abs(m) < .0006) {return "0em"}
+ return m.toFixed(3).replace(/\.?0+$/,"") + "em";
+ },
unEm: function (m) {
return parseFloat(m);
},
@@ -2811,10 +2816,8 @@
Chrome: function (browser) {
HTMLCSS.Augment({
- Em: HTMLCSS.Px, // vertical alignment is better in pixels (since around v20)
- unEm: HTMLCSS.unPx,
- chromeHeightBug: true, // heights can be 1px off from the explicitly set size
- cloneNodeBug: true, // Chrome gets heights wrong with the cloned ones
+ Em: HTMLCSS.EmRounded, // vertical alignment needs help (since around v20)
+ cloneNodeBug: true, // Chrome gets heights wrong with the cloned ones
rfuzz: .011,
AccentBug: true,
AdjustSurd: true,