From 7df4cea83d228fad9e9a8cc8b67055c7c2c93581 Mon Sep 17 00:00:00 2001 From: Tyler Kellen Date: Thu, 19 Jun 2014 16:01:07 -0400 Subject: [PATCH] display none/block for hiding --- src/dat/gui/GUI.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 0077f7d..fc79677 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -464,8 +464,7 @@ define([ hide = !hide; common.each(hideable_guis, function(gui) { - gui.domElement.style.zIndex = hide ? -999 : 999; - gui.domElement.style.opacity = hide ? 0 : 1; + gui.domElement.style.display = hide ? 'none' : 'fixed'; }); };