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

This commit is contained in:
sspitzer%mozilla.org 2007-08-22 05:04:49 +00:00
Родитель b900384d04
Коммит a232d30227
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -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.