Bug 787895 - Indicator for dropping links on the tab strip is misaligned if there are pinned tabs and the tab strip overflows. r=jaws

This commit is contained in:
Dão Gottwald 2012-09-03 18:10:30 +02:00
parent 213e712dd7
commit 2572d29eb7

View File

@ -3630,7 +3630,7 @@
var newIndex = this._getDropIndex(event);
var scrollRect = tabStrip.scrollClientRect;
var rect = this.getBoundingClientRect();
var rect = tabStrip.getBoundingClientRect();
var minMargin = scrollRect.left - rect.left;
var maxMargin = Math.min(minMargin + scrollRect.width,
scrollRect.right);