From 7274b3851920c604bf8639ccb2dfea99eeeefbaa 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 b0f61d3..29cdb6c 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'; }); };