diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index 56aee8e0df8..a43df2d97de 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -2414,14 +2414,21 @@
var self = this;
function onResize() {
- self.adjustTabstrip(false);
- self.mTabstrip.scrollBoxObject
- .ensureElementIsVisible(self.selectedItem);
+ var width = self.mTabstrip.boxObject.width;
+ if (width != self.mTabstripWidth) {
+ self.adjustTabstrip(false);
+ self.mTabstrip.scrollByIndex(1);
+ self.mTabstrip.scrollBoxObject
+ .ensureElementIsVisible(self.selectedItem);
+ self.mTabstripWidth = width;
+ }
}
window.addEventListener("resize", onResize, false);
]]>
+ 0
+
document.getAnonymousElementByAttribute(this, "anonid", "arrowscrollbox");
@@ -2563,7 +2570,7 @@
-
+