From c95cb11c199a902f9f6a66f7edb935a9c65fbd8b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 15 Jan 2015 14:18:51 -0500 Subject: [PATCH] Use min-width on NativeMML zoom box for full-width tables. Issue #918. --- unpacked/jax/output/NativeMML/jax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js index 7015e572e..8c45e06f5 100644 --- a/unpacked/jax/output/NativeMML/jax.js +++ b/unpacked/jax/output/NativeMML/jax.js @@ -453,6 +453,8 @@ jax.root.toNativeMML(span); if (this.msieIE8HeightBug) {span.style.position = "absolute"} if (nMML.widthBug) {span.style.width = span.parentNode.style.width = ""} + if (span.parentNode.style.width.match(/%$/)) + {span.parentNode.style.minWidth = Math.ceil(3*Mh/4)+"px"} // for full-width tables var mW = math.offsetWidth || math.scrollWidth, mH = math.offsetHeight || math.scrollHeight; var zW = span.offsetWidth, zH = span.offsetHeight;