From 1f80ca2aeaebbdc0ee7588d860185a4ffa954456 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 1 Aug 2012 17:19:52 +0900 Subject: [PATCH] fix fullscreen --- _keysnail.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 6b5734b..d2fcb2a 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -182,16 +182,22 @@ ext.add("echo-tab-info", function(){ ext.add("strong-fullscreen", function(){ var elemids = [ - "navigator-toolbox", - "verticaltabs-box", - "verticaltabs-splitter" + "navigator-toolbox" + //"verticaltabs-box", //dont work well when open new tab + //"verticaltabs-splitter" ]; BrowserFullScreen(); var isfullscreen = window.fullScreen; for(var i = 0; i < elemids.length; i++){ var elem = document.getElementById(elemids[i]); - if(elem){ elem.hidden = isfullscreen; } + if(elem){ + if(isfullscreen){ + elem.style.display = "none"; + }else{ + elem.style.display = null; + } + } } }, "go fullscreen with hiding toolbar and tabbar");