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 id18290
push userneil@mozilla.com
push dateTue, 25 Jan 2011 19:22:27 +0000
treeherdermozilla-central@95f9c203178e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, gavin
bugs626997
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>