Skip to content

Commit c95cb11

Browse files
committed
Use min-width on NativeMML zoom box for full-width tables. Issue #918.
1 parent 1332145 commit c95cb11

File tree

1 file changed

+2
-0
lines changed
  • unpacked/jax/output/NativeMML

1 file changed

+2
-0
lines changed

unpacked/jax/output/NativeMML/jax.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@
453453
jax.root.toNativeMML(span);
454454
if (this.msieIE8HeightBug) {span.style.position = "absolute"}
455455
if (nMML.widthBug) {span.style.width = span.parentNode.style.width = ""}
456+
if (span.parentNode.style.width.match(/%$/))
457+
{span.parentNode.style.minWidth = Math.ceil(3*Mh/4)+"px"} // for full-width tables
456458
var mW = math.offsetWidth || math.scrollWidth,
457459
mH = math.offsetHeight || math.scrollHeight;
458460
var zW = span.offsetWidth, zH = span.offsetHeight;

0 commit comments

Comments
 (0)