jsxgraph: add margin to center the graph

This commit is contained in:
joyqat 2020-08-07 13:12:26 +08:00
parent 5d1132373b
commit f90732a03b
1 changed files with 1 additions and 0 deletions

View File

@ -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);