Don't touch to "ordinal" attribute of drop indicator bar, on Firefox 4 or later.

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-05-25 03:30:40 +09:00
parent de6ea32045
commit e9900dceb0

View File

@ -1066,6 +1066,7 @@ TreeStyleTabBrowser.prototype = {
unexpectedly becomes 0 on the startup. so, we have
to set the width again. */
aSelf.setTabStripAttribute('width', width);
if (!aSelf.isFloating)
indicator.setAttribute('ordinal', 1);
aSelf.setTabStripAttribute('ordinal', 30);
aSplitter.setAttribute('ordinal', 20);
@ -1079,6 +1080,7 @@ TreeStyleTabBrowser.prototype = {
this.removeTabbrowserAttribute(this.kTAB_INVERTED);
this.indentTarget = 'left';
delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) {
if (!aSelf.isFloating)
indicator.setAttribute('ordinal', 1);
aSelf.setTabStripAttribute('ordinal', 10);
aSplitter.setAttribute('ordinal', 20);
@ -1137,6 +1139,7 @@ TreeStyleTabBrowser.prototype = {
this.setTabbrowserAttribute(this.kTABBAR_POSITION, 'bottom');
this.indentTarget = 'bottom';
delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) {
if (!aSelf.isFloating)
indicator.setAttribute('ordinal', 1);
aSelf.setTabStripAttribute('ordinal', 30);
aSplitter.setAttribute('ordinal', 20);
@ -1148,6 +1151,7 @@ TreeStyleTabBrowser.prototype = {
this.setTabbrowserAttribute(this.kTABBAR_POSITION, 'top');
this.indentTarget = 'top';
delayedPostProcess = function(aSelf, aTabBrowser, aSplitter, aToggler) {
if (!aSelf.isFloating)
indicator.setAttribute('ordinal', 1);
aSelf.setTabStripAttribute('ordinal', 10);
aSplitter.setAttribute('ordinal', 20);