From e9900dceb0eab929269659b400bf794ad02baa5a Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Wed, 25 May 2011 03:30:40 +0900 Subject: [PATCH] Don't touch to "ordinal" attribute of drop indicator bar, on Firefox 4 or later. --- content/treestyletab/treestyletabbrowser.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 60574467..45593491 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1066,7 +1066,8 @@ TreeStyleTabBrowser.prototype = { unexpectedly becomes 0 on the startup. so, we have to set the width again. */ aSelf.setTabStripAttribute('width', width); - indicator.setAttribute('ordinal', 1); + if (!aSelf.isFloating) + indicator.setAttribute('ordinal', 1); aSelf.setTabStripAttribute('ordinal', 30); aSplitter.setAttribute('ordinal', 20); aToggler.setAttribute('ordinal', 40); @@ -1079,7 +1080,8 @@ TreeStyleTabBrowser.prototype = { this.removeTabbrowserAttribute(this.kTAB_INVERTED); this.indentTarget = 'left'; delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) { - indicator.setAttribute('ordinal', 1); + if (!aSelf.isFloating) + indicator.setAttribute('ordinal', 1); aSelf.setTabStripAttribute('ordinal', 10); aSplitter.setAttribute('ordinal', 20); aToggler.setAttribute('ordinal', 5); @@ -1137,7 +1139,8 @@ TreeStyleTabBrowser.prototype = { this.setTabbrowserAttribute(this.kTABBAR_POSITION, 'bottom'); this.indentTarget = 'bottom'; delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) { - indicator.setAttribute('ordinal', 1); + if (!aSelf.isFloating) + indicator.setAttribute('ordinal', 1); aSelf.setTabStripAttribute('ordinal', 30); aSplitter.setAttribute('ordinal', 20); aToggler.setAttribute('ordinal', 40); @@ -1148,7 +1151,8 @@ TreeStyleTabBrowser.prototype = { this.setTabbrowserAttribute(this.kTABBAR_POSITION, 'top'); this.indentTarget = 'top'; delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) { - indicator.setAttribute('ordinal', 1); + if (!aSelf.isFloating) + indicator.setAttribute('ordinal', 1); aSelf.setTabStripAttribute('ordinal', 10); aSplitter.setAttribute('ordinal', 20); aToggler.setAttribute('ordinal', 5);