Bug 1373969 - update overflow chevron state when resetting, r?jaws draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 22 Jun 2017 14:13:37 +0100
changeset 598992 c8051cd5805acd25cbddc3325aa3aba3fecd267c
parent 598991 beba321a1ad7a62e089c899d617b01a7eff17a5f
child 634640 a8fb6c62326e09a261624a5373939eef438d9abd
push id65383
push userbmo:gijskruitbosch+bugs@gmail.com
push dateThu, 22 Jun 2017 13:48:01 +0000
reviewersjaws
bugs1373969
milestone56.0a1
Bug 1373969 - update overflow chevron state when resetting, r?jaws MozReview-Commit-ID: IO6fEMHeowT
browser/components/customizableui/content/panelUI.js
--- a/browser/components/customizableui/content/panelUI.js
+++ b/browser/components/customizableui/content/panelUI.js
@@ -635,16 +635,22 @@ const PanelUI = {
     }
     if (!aIsRemoval &&
         (this.panel.state == "open" ||
          document.documentElement.hasAttribute("customizing"))) {
       this._adjustLabelsForAutoHyphens(aNode);
     }
   },
 
+  onAreaReset(aArea, aContainer) {
+    if (gPhotonStructure && aContainer == this.overflowFixedList) {
+      this.updateOverflowStatus();
+    }
+  },
+
   /**
    * Signal that we're about to make a lot of changes to the contents of the
    * panels all at once. For performance, we ignore the mutations.
    */
   beginBatchUpdate() {
     this._ensureEventListenersAdded();
     this.multiView.ignoreMutations = true;
   },