Bug 655412 Don't unnecessarily trigger tab strip overflow for the initial tab r=Callek
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sat, 07 May 2011 14:42:38 +0100
changeset 7723 5e78e1fa3fa0e481f40fe606bc58a0c9619d8324
parent 7722 6f0e51f510aac8c16890ad073357ee304a3e0755
child 7724 789b419bafdf771b0c55b4ad99d987cfef85f65b
push id5928
push userneil@parkwaycc.co.uk
push dateSat, 07 May 2011 13:42:50 +0000
treeherdercomm-central@789b419bafdf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs655412
Bug 655412 Don't unnecessarily trigger tab strip overflow for the initial tab r=Callek
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -2985,16 +2985,18 @@
         </xul:vbox>
       </xul:stack>
     </content>
 
     <implementation implements="nsIDOMEventListener">
       <constructor>
         <![CDATA[
           var tab = this.firstChild;
+          // set the tabstrip's minWidth too, otherwise it immediately overflows
+          this.mTabstrip.style.minWidth =
           tab.style.minWidth = this.mPrefs.getIntPref("browser.tabs.tabMinWidth") + "px";
           tab.style.maxWidth = this.mPrefs.getIntPref("browser.tabs.tabMaxWidth") + "px";
           window.addEventListener("resize", this, false);
         ]]>
       </constructor>
 
       <destructor>
         <![CDATA[