From 8da90661914b225ffc3ba70f57e26c1c7ebd79c1 Mon Sep 17 00:00:00 2001 From: "gavin@gavinsharp.com" Date: Tue, 21 Aug 2007 22:00:49 -0700 Subject: [PATCH] Bug 313501: invalid use of gBrowser in tabbrowser.xml, r=mconnor --- browser/base/content/tabbrowser.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 6a57d64d15d..3d39c1a9f88 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -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'; } } }