From 8b14430c95e212e6fe7cf894c9828092657ed951 Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Sat, 3 Nov 2018 22:02:07 +0100
Subject: [PATCH] fix plotly resizing

---
 extra_markdown.tpl | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/extra_markdown.tpl b/extra_markdown.tpl
index f9f94a4d..b6847f9e 100644
--- a/extra_markdown.tpl
+++ b/extra_markdown.tpl
@@ -11,12 +11,8 @@
 <script>
 window.addEventListener('load', function() {
   Plotly.d3.json('/{{plotly_url}}', function(error, fig) {
-    MathJax.Hub.Queue(
-      ["setRenderer",MathJax.Hub,"SVG"]
-    );
-    Plotly.plot('{{div_id}}', fig.data, fig.layout);
-    MathJax.Hub.Queue(
-      ["setRenderer",MathJax.Hub,"HTMLCSS-output"]
+    Plotly.plot('{{div_id}}', fig.data, fig.layout).then(
+      function(value) {Plotly.relayout('{{div_id}}', {height: ' '})}
     );
   });
 });
-- 
GitLab