From 64ac5176e55ac44355ee4fffd0fe1a13f92feaff Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 6 Apr 2010 23:56:10 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92?= =?UTF-8?q?=E3=83=84=E3=83=BC=E3=83=AB=E3=83=9C=E3=83=83=E3=82=AF=E3=82=B9?= =?UTF-8?q?=E3=81=AE=E4=B8=80=E7=95=AA=E4=B8=8A=E3=81=AB=E7=A7=BB=E5=8B=95?= =?UTF-8?q?=E3=81=99=E3=82=8B=E6=A9=9F=E8=83=BD=EF=BC=88https://bugzilla.m?= =?UTF-8?q?ozilla.org/show=5Fbug.cgi=3Fid=3D544815=EF=BC=89=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6575 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index e6ed7d1d..784e01a2 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1124,6 +1124,17 @@ TreeStyleTabBrowser.prototype = { this.removeTabStripAttribute('height'); b.mPanelContainer.removeAttribute('height'); } + // remove ordinal for "tabs on top" https://bugzilla.mozilla.org/show_bug.cgi?id=544815 + if (this.isFloating && this.currentTabbarPosition == 'top') { + this.removeTabStripAttribute('ordinal'); + if ('TabsOnTop' in window) { + // workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=555987 + TabsOnTop.enabled = !TabsOnTop.enabled; + window.setTimeout(function() { + TabsOnTop.enabled = !TabsOnTop.enabled; + }, 0); + } + } } else { this.removeTabbrowserAttribute(this.kFIXED, b); @@ -1180,6 +1191,13 @@ TreeStyleTabBrowser.prototype = { tabContainer.collapsed = (this.splitter && this.splitter.getAttribute('state') == 'collapsed'); } + else { + tabContainer.collapsed = false; + strip.style.top = ''; + strip.style.left = ''; + strip.style.width = ''; + strip.style.height = ''; + } if (this.mTabBrowser != gBrowser) return;