]> git.eli173.com Git - textrivers/commitdiff
margin improvement
authorElijah Cohen <eli@eli173.com>
Mon, 30 Oct 2017 04:03:34 +0000 (00:03 -0400)
committerElijah Cohen <eli@eli173.com>
Mon, 30 Oct 2017 04:03:34 +0000 (00:03 -0400)
tr.js

diff --git a/tr.js b/tr.js
index fee77d11c5933faa811d01309d90fa8e70ac9349..a35f07fcee264ff7d30d72ec93c84b9244a50386 100644 (file)
--- a/tr.js
+++ b/tr.js
@@ -114,7 +114,7 @@ function go() {
     console.log(w);
     console.log(t);
     p = mat_to_png(get_matrix(s,w,t));
-    document.getElementById("img_zone").innerHTML = '<img src="data:image/png;base64,'+p.getBase64()+'" style="transform: scale('+scl+'); margin: '+scl*p.height/2+'px;">';
+    document.getElementById("img_zone").innerHTML = '<img src="data:image/png;base64,'+p.getBase64()+'" style="transform: scale('+scl+'); margin-top: '+20+'px;">';
     //d = document.createElement('div');
     //d.innerHTML = 
     //document.getElementById("img_zone").appendChild(d);