From e77efd181694a23c74743474457936ac7c9f0435 Mon Sep 17 00:00:00 2001 From: Marco Frigerio Date: Tue, 15 Oct 2019 10:28:15 +0200 Subject: [PATCH] Make the datgui element a sibling of the meshcat-pane, not a child --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 13c980a..0d04f49 100644 --- a/src/index.js +++ b/src/index.js @@ -735,7 +735,7 @@ class Viewer { this.gui = new dat.GUI({ autoPlace: false }); - this.dom_element.appendChild(this.gui.domElement); + this.dom_element.parentElement.appendChild(this.gui.domElement); this.gui.domElement.style.position = "absolute"; this.gui.domElement.style.right = 0; this.gui.domElement.style.top = 0;