Bug 1373972 - update overflow chevron state when resetting, r?jaws draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 22 Jun 2017 14:13:37 +0100
changeset 598994 60ca32ab9ed75ce14f25da83f8694d9d56c81560
parent 598993 04533685a03e1b0f282664b8566793e34f93b844
child 634641 67b555fa07648ce7d15f960b9b79ce4cb5b424da
push id65385
push userbmo:gijskruitbosch+bugs@gmail.com
push dateThu, 22 Jun 2017 13:51:34 +0000
reviewersjaws
bugs1373972
milestone56.0a1
Bug 1373972 - 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;
   },