diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index a4876e2f2da..56aee8e0df8 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -106,7 +106,7 @@
@@ -1099,7 +1099,7 @@
t.setAttribute("crop", "end");
t.maxWidth = 250;
- t.minWidth = 140;
+ t.minWidth = this.mTabContainer.mTabMinWidth;
t.width = 0;
t.setAttribute("flex", "100");
t.setAttribute("validate", "never");
@@ -2393,27 +2393,33 @@
- var pb2 =
- Components.classes['@mozilla.org/preferences-service;1'].
- getService(Components.interfaces.nsIPrefBranch2);
- try {
- this.mTabClipWidth = pb2.getIntPref("browser.tabs.tabClipWidth");
- this.mCloseButtons = pb2.getIntPref("browser.tabs.closeButtons");
- }
- catch (e) {
- }
+
@@ -2472,7 +2478,8 @@
}
});
- 130
+ 125
+ 115
1
@@ -2500,17 +2507,17 @@
this.childNodes.length == 1)
this.setAttribute("closebuttons", "noclose");
else {
- var width = this.firstChild.boxObject.width;
- // 0 width is an invalid value and indicates an item without display,
- // so ignore.
- if (width > this.mTabClipWidth || width == 0)
+ var width = this.firstChild.boxObject.width;
+ // 0 width is an invalid value and indicates
+ // an item without display, so ignore.
+ if (width > this.mTabClipWidth || width == 0)
this.setAttribute("closebuttons", "alltabs");
- else
+ else
this.setAttribute("closebuttons", "activetab");
}
- }
- catch (e) {
- }
+ }
+ catch (e) {
+ }
break;
case 2:
case 3:
@@ -2551,18 +2558,12 @@
]]>