Skip to content

Commit

Permalink
Merge pull request #62 from mfrigerio17/no-orbit-on-datgui
Browse files Browse the repository at this point in the history
Make the datgui element a sibling of the meshcat-pane, not a child
  • Loading branch information
rdeits authored Nov 18, 2019
2 parents c934e13 + e77efd1 commit ae82a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,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;
Expand Down

0 comments on commit ae82a61

Please sign in to comment.