Bug 313501: invalid use of gBrowser in tabbrowser.xml, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-10-23 17:44:51 +00:00
Родитель 5f36b8f842
Коммит 25c84a5e08
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -1500,13 +1500,13 @@
ind.style.marginLeft = this.mTabs[newIndex].boxObject.x - this.boxObject.x - 7 + 'px';
}
} else {
if (newIndex == gBrowser.mTabs.length) {
ind.style.marginRight = gBrowser.boxObject.width + gBrowser.boxObject.x -
gBrowser.mTabs[newIndex-1].boxObject.x + 'px';
} else {
ind.style.marginRight = gBrowser.boxObject.width + gBrowser.boxObject.x -
gBrowser.mTabs[newIndex].boxObject.x -
gBrowser.mTabs[newIndex].boxObject.width + 'px';
if (newIndex == this.mTabs.length) {
ind.style.marginRight = this.boxObject.width + this.boxObject.x -
this.mTabs[newIndex-1].boxObject.x + 'px';
} else {
ind.style.marginRight = this.boxObject.width + this.boxObject.x -
this.mTabs[newIndex].boxObject.x -
this.mTabs[newIndex].boxObject.width + 'px';
}
}
}