www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c95cb11c199a902f9f6a66f7edb935a9c65fbd8b
parent 13321458eb1c90eb2da1bd8d8e3515bfd0235728
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu, 15 Jan 2015 14:18:51 -0500

Use min-width on NativeMML zoom box for full-width tables.  Issue #918.

Diffstat:
Munpacked/jax/output/NativeMML/jax.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;