From 8dc99cef2d0f8f9e89faffaecafe4251e6ff2bfb Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 6 Feb 2014 15:20:19 -0500 Subject: [PATCH] Add min and max width and height resets to CSS where appropriate. Resolves issue #517. --- unpacked/jax/output/HTML-CSS/jax.js | 14 +++++++++++--- unpacked/jax/output/NativeMML/jax.js | 3 +++ unpacked/jax/output/SVG/jax.js | 8 +++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 84e30b454..813eedd2f 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -224,17 +224,23 @@ "white-space": "nowrap", "float": "none", "direction": "ltr", + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, border: 0, padding: 0, margin: 0 }, ".MathJax_Display": { position: "relative", display: "block!important", + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, width: "100%" }, ".MathJax img, .MathJax nobr, .MathJax a": { - border: 0, padding: 0, margin: 0, "max-width": "none", "max-height": "none", + border: 0, padding: 0, margin: 0, + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, "vertical-align": 0, "line-height": "normal", "text-decoration": "none" }, @@ -275,11 +281,13 @@ ".MathJax_ExBox": { display:"block!important", overflow:"hidden", - width:"1px", height:"60ex" + width:"1px", height:"60ex", + "min-height": 0, "max-height":"none" }, ".MathJax .MathJax_EmBox": { display:"block!important", overflow:"hidden", - width:"1px", height:"60em" + width:"1px", height:"60em", + "min-height": 0, "max-height":"none" }, ".MathJax .MathJax_HitBox": { diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js index dcd018ccb..50ccada64 100644 --- a/unpacked/jax/output/NativeMML/jax.js +++ b/unpacked/jax/output/NativeMML/jax.js @@ -101,6 +101,8 @@ "white-space": "nowrap", "float": "none", "direction": "ltr", + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, border: 0, padding: 0, margin: 0 }, @@ -115,6 +117,7 @@ ".MathJax_mmlExBox": { display:"block!important", overflow:"hidden", height:"1px", width:"60ex", + "min-height": 0, "max-height":"none", padding:0, border: 0, margin: 0 } } diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 47b814c29..6adee9c19 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -52,12 +52,16 @@ "white-space": "nowrap", "float": "none", "direction": "ltr", + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, border: 0, padding: 0, margin: 0 }, ".MathJax_SVG_Display": { position: "relative", display: "block!important", + "max-width": "none", "max-height": "none", + "min-width": 0, "min-height": 0, width: "100%" }, @@ -81,7 +85,9 @@ ".MathJax_SVG_ExBox": { display:"block!important", overflow:"hidden", - width:"1px", height:"60ex" + width:"1px", height:"60ex", + "min-height": 0, "max-height":"none", + padding:0, border: 0, margin: 0 }, "#MathJax_SVG_Tooltip": {