From f90732a03b45c48f907e0e85d0a5588210103e0a Mon Sep 17 00:00:00 2001 From: joyqat Date: Fri, 7 Aug 2020 13:12:26 +0800 Subject: [PATCH] jsxgraph: add margin to center the graph --- layouts/partials/script/single-script.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index b3ab901..0a87c80 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -625,6 +625,7 @@ x.parentNode.style.backgroundColor = "transparent" var node0 = document.createElement('div'); node0.id = 'jsxgraph' + index; + node0.style.margin = 'auto'; node0.classList += 'jxgbox'; x.parentNode.insertBefore(node0, x);