Skip to content

Commit 846e3cd

Browse files
authored
Remove calls to SetWH
Fixes mathjax#268
1 parent 83e67a2 commit 846e3cd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/mj-page.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ function MakeIMG() {
792792
src:"data:image/svg+xml;base64,"+svg, style:{cssText:css},
793793
className: "MathJax_SVG_IMG",
794794
});
795-
SetWH(img,w,h); // work around jsdom bug with width and height CSS
796795
if (data.speakText) img.setAttribute("alt",MathJax.Hub.getJaxFor(nodes[i]).speech);
797796
nodes[i].parentNode.replaceChild(img,nodes[i]);
798797
}
@@ -831,7 +830,6 @@ function MakePNG() {
831830
src:"data:image/png;base64,"+buffer.toString('base64'),
832831
style:{cssText:css}, className: "MathJax_PNG_IMG",
833832
});
834-
SetWH(img,w,h); // work around jsdom bug with width and height CSS
835833
if (data.speakText) img.setAttribute("alt",MathJax.Hub.getJaxFor(nodes[i]).speech);
836834
nodes[i].parentNode.replaceChild(img,nodes[i]);
837835
}

0 commit comments

Comments
 (0)