From c855a35effbc9a67f2dcf02eb7bb3e872a2cf40c Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 17 Feb 2014 11:15:26 -0500 Subject: [PATCH] Don't clip delimiters that stretch farther than they are they supposed to. (This is handled by letting them extend beyond their bounding box, but that means they can overlap the rows above or below. Idealy, this should alter the heights of the rows, but that could require restretching rows when equalrows is set, and could lead to looping to try to get the table to stablize. Resolves issue #701 for now. --- unpacked/jax/output/HTML-CSS/autoload/mtable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unpacked/jax/output/HTML-CSS/autoload/mtable.js b/unpacked/jax/output/HTML-CSS/autoload/mtable.js index 995a98659..71bce512b 100644 --- a/unpacked/jax/output/HTML-CSS/autoload/mtable.js +++ b/unpacked/jax/output/HTML-CSS/autoload/mtable.js @@ -280,6 +280,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { mo = cell.CoreMO(); var symmetric = mo.symmetric; mo.symmetric = false; A[i][j].bbox = cell.HTMLstretchV(C[j],H[i],D[i]).bbox; A[i][j].HH = null; + if (A[i][j].bbox.h > H[i]) {A[i][j].bbox.H = A[i][j].bbox.h; A[i][j].bbox.h = H[i]} + if (A[i][j].bbox.d > D[i]) {A[i][j].bbox.D = A[i][j].bbox.d; A[i][j].bbox.d = D[i]} mo.symmetric = symmetric; } align = cell.rowalign||this.data[i].rowalign||RALIGN[i];