Bug 1405942 - Make sure to always apply the descriptionHeightWorkaround in Photon panels on popupshown, because it might've missed elements that were hidden. r?Paolo
MozReview-Commit-ID: 9xSqoZGJ3MF
--- a/browser/components/customizableui/PanelMultiView.jsm
+++ b/browser/components/customizableui/PanelMultiView.jsm
@@ -1043,18 +1043,17 @@ this.PanelMultiView = class {
blockInBoxWorkaround();
}
}
break;
}
case "popupshown":
// Now that the main view is visible, we can check the height of the
// description elements it contains.
- if (!this.panelViews)
- this.descriptionHeightWorkaround();
+ this.descriptionHeightWorkaround();
break;
case "popuphidden": {
// WebExtensions consumers can hide the popup from viewshowing, or
// mid-transition, which disrupts our state:
this._viewShowing = null;
this._transitioning = false;
this.node.removeAttribute("panelopen");
this.showMainView();