From d14c6b15aad622c282646824a70effd9a477d668 Mon Sep 17 00:00:00 2001 From: Drew Willcoxon Date: Fri, 26 Aug 2016 16:36:56 -0700 Subject: [PATCH] Bug 1292345 - Downloads panel didn't shrink to the fit height after all items are downloaded. r=me MozReview-Commit-ID: AV0S8GM0ztj --HG-- extra : rebase_source : e8d01256b994368b72c73344232f64cb26d6a357 --- browser/components/downloads/content/downloads.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/downloads/content/downloads.js b/browser/components/downloads/content/downloads.js index eeae8524eada..dcf0b377b2e4 100644 --- a/browser/components/downloads/content/downloads.js +++ b/browser/components/downloads/content/downloads.js @@ -1525,6 +1525,10 @@ const DownloadsFooter = { } else { this._footerNode.removeAttribute("showingsummary"); } + if (!aValue && this._showingSummary) { + // Make sure the panel's height shrinks when the summary is hidden. + DownloadsBlockedSubview.view.setHeightToFit(); + } this._showingSummary = aValue; } return aValue;