Browse Source

fix strong-fullscreen

pull/1/head
10sr 12 years ago
parent
commit
be4f4b7a3d
1 changed files with 15 additions and 2 deletions
  1. +15
    -2
      _keysnail.js

+ 15
- 2
_keysnail.js View File

@@ -183,8 +183,6 @@ ext.add("echo-tab-info", function(){
ext.add("strong-fullscreen", function(){ ext.add("strong-fullscreen", function(){
var elemids = [ var elemids = [
"navigator-toolbox" "navigator-toolbox"
//"verticaltabs-box", //dont work well when open new tab
//"verticaltabs-splitter"
]; ];
BrowserFullScreen(); BrowserFullScreen();
var isfullscreen = window.fullScreen; var isfullscreen = window.fullScreen;
@@ -199,6 +197,21 @@ ext.add("strong-fullscreen", function(){
} }
} }
} }

var tabs = document.getElementById("verticaltabs-box");
var pref_key = "extensions.verticaltabs.width";
var pref_key_bak = pref_key + "_bak"
if(isfullscreen){
var width_orig = util.getIntPref(pref_key);
util.setIntPref(pref_key_bak, width_orig);
util.setIntPref(pref_key, 0);
tabs.setAttribute("width", "0");
}else if(parseInt(tabs.getAttribute("width") || "") === 0){
var width_bak = util.getIntPref(pref_key_bak);
util.setIntPref(pref_key, width_bak);
tabs.setAttribute("width", width_bak.toString());
}

}, "go fullscreen with hiding toolbar and tabbar"); }, "go fullscreen with hiding toolbar and tabbar");


// ext.add("open-url-from-clipboard", function(){ // ext.add("open-url-from-clipboard", function(){


Loading…
Cancel
Save