summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-03-22 12:00:05 -0400
committerKris Maglione <maglione.k@gmail.com>2011-03-22 12:00:05 -0400
commit5521d8bf6c7880f3efee819afc0e3c56752d7469 (patch)
treeda55375c0f4f69704ce8f4a650716205215be997 /common/content/tabs.js
parent772b32253286503d1365526cbd104ea69338fa77 (diff)
downloadpentadactyl-5521d8bf6c7880f3efee819afc0e3c56752d7469.tar.gz
Fix TabsInTitlebar rubbish on Windows. Closes issue #420.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index f2665189..19ff98f7 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -19,6 +19,8 @@ var Tabs = Module("tabs", {
this._lastBufferSwitchArgs = "";
this._lastBufferSwitchSpecial = true;
+ this.xulTabs = document.getElementById("tabbrowser-tabs");
+
// hide tabs initially to prevent flickering when 'stal' would hide them
// on startup
if (config.hasTabbrowser)
@@ -1013,8 +1015,13 @@ var Tabs = Module("tabs", {
_("option.showtabline.safeSet"));
tabs.tabStyle.enabled = false;
}
+
if (value !== "multitab" || !dactyl.has("Gecko2"))
- config.tabStrip.collapsed = false;
+ if (tabs.xulTabs)
+ tabs.xulTabs.visible = value !== "never";
+ else
+ config.tabStrip.collapsed = false;
+
if (config.tabbrowser.tabContainer._positionPinnedTabs)
config.tabbrowser.tabContainer._positionPinnedTabs();
return value;