Bug 626997, don't show window resizer when window is maximized or fullscreen, r=dao, a=gavin
authorNeil Deakin <neil@mozilla.com>
Tue, 25 Jan 2011 14:21:56 -0500
changeset 61274 95f9c203178e4099321bb34c009fa81bbc85ab68
parent 61273 a3c8dbfe99b9cf12cb66ad1b858b391db0e9a851
child 61275 7e8ac324ad320ef3e8384f6937cf97e81cb8938c
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersdao, gavin
bugs626997
milestone2.0b10pre
Bug 626997, don't show window resizer when window is maximized or fullscreen, r=dao, a=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -177,17 +177,18 @@
         ]]></getter>
       </property>
 
       <method name="updateWindowResizers">
         <body><![CDATA[
           if (!window.gShowPageResizers)
             return;
 
-          var show = document.getElementById("addon-bar").collapsed;
+          var show = document.getElementById("addon-bar").collapsed &&
+                     window.windowState == window.STATE_NORMAL;
           for (let i = 0; i < this.browsers.length; i++) {
             this.browsers[i].showWindowResizer = show;
           }
         ]]></body>
       </method>
 
       <method name="pinTab">
         <parameter name="aTab"/>
@@ -2859,16 +2860,17 @@
                 break;
               var width = this.mTabstrip.boxObject.width;
               if (width != this.mTabstripWidth) {
                 this.adjustTabstrip();
                 this._fillTrailingGap();
                 this._handleTabSelect();
                 this.mTabstripWidth = width;
               }
+              this.tabbrowser.updateWindowResizers();
               break;
           }
         ]]></body>
       </method>
 
       <field name="_animateElement">
         this.mTabstrip._scrollButtonDown;
       </field>