From fa66d424da554e11255e81dde91150da44839cf3 Mon Sep 17 00:00:00 2001 From: "sspitzer%mozilla.org" Date: Wed, 22 Aug 2007 05:04:11 +0000 Subject: [PATCH] fix for bug #343688. Attempting to move tabs into right-hand overflow-scroll area while sidebar is open causes bizarreness. need to take into account the position of the tab scroll drop indicator bar. r=rstrong git-svn-id: svn://10.0.0.236/trunk@232745 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/tabbrowser.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/browser/base/content/tabbrowser.xml b/mozilla/browser/base/content/tabbrowser.xml index 523b7538643..2f861c66974 100644 --- a/mozilla/browser/base/content/tabbrowser.xml +++ b/mozilla/browser/base/content/tabbrowser.xml @@ -1639,7 +1639,8 @@ if (window.getComputedStyle(this.parentNode, null) .direction == "ltr") { var newMarginLeft; - var minMarginLeft = tabStripBoxObject.x - halfIndWidth; + var minMarginLeft = tabStripBoxObject.x - halfIndWidth - + ib.boxObject.x; // make sure we don't place the tab drop indicator past the // edge, or the containing box will flex and stretch // the tab drop indicator bar, which will flex the url bar. @@ -1677,7 +1678,8 @@ ind.style.marginLeft = newMarginLeft + 'px'; } else { var newMarginRight; - var minMarginRight = tabStripBoxObject.x - halfIndWidth; + var minMarginRight = tabStripBoxObject.x - halfIndWidth - + ib.boxObject.x; // make sure we don't place the tab drop indicator past the // edge, or the containing box will flex and stretch // the tab drop indicator bar, which will flex the url bar.