diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-03-22 12:00:05 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-03-22 12:00:05 -0400 |
commit | 5521d8bf6c7880f3efee819afc0e3c56752d7469 (patch) | |
tree | da55375c0f4f69704ce8f4a650716205215be997 /common/content/tabs.js | |
parent | 772b32253286503d1365526cbd104ea69338fa77 (diff) | |
download | pentadactyl-5521d8bf6c7880f3efee819afc0e3c56752d7469.tar.gz |
Fix TabsInTitlebar rubbish on Windows. Closes issue #420.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r-- | common/content/tabs.js | 9 |
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; |