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

This commit is contained in:
Davide P. Cervone 2015-01-15 14:18:51 -05:00
parent 13321458eb
commit c95cb11c19

View File

@ -453,6 +453,8 @@
jax.root.toNativeMML(span); jax.root.toNativeMML(span);
if (this.msieIE8HeightBug) {span.style.position = "absolute"} if (this.msieIE8HeightBug) {span.style.position = "absolute"}
if (nMML.widthBug) {span.style.width = span.parentNode.style.width = ""} 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, var mW = math.offsetWidth || math.scrollWidth,
mH = math.offsetHeight || math.scrollHeight; mH = math.offsetHeight || math.scrollHeight;
var zW = span.offsetWidth, zH = span.offsetHeight; var zW = span.offsetWidth, zH = span.offsetHeight;