Bug 1260071 - Call resize() when searching happens on frontend to reset width;r=vporof draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Tue, 29 Mar 2016 16:15:53 -0700
changeset 345621 1b6622b23392ccc7de90193c4c847b0077145d99
parent 345612 f3cf9faeb72885a4a30ba10ab306ed36ac7f8698
child 517228 1c0fba1b063237b96929fce2257607156b0f2769
push id14128
push userbgrinstead@mozilla.com
push dateTue, 29 Mar 2016 23:17:37 +0000
reviewersvporof
bugs1260071
milestone48.0a1
Bug 1260071 - Call resize() when searching happens on frontend to reset width;r=vporof MozReview-Commit-ID: 3Sbuh5NEN6p
devtools/client/webconsole/webconsole.js
--- a/devtools/client/webconsole/webconsole.js
+++ b/devtools/client/webconsole/webconsole.js
@@ -1060,16 +1060,18 @@ WebConsoleFrame.prototype = {
 
       // if the text matches the words in aSearchString...
       if (this.stringMatchesFilters(text, searchString)) {
         node.classList.remove("filtered-by-string");
       } else {
         node.classList.add("filtered-by-string");
       }
     }
+
+    this.resize();
   },
 
   /**
    * Applies the user's filters to a newly-created message node via CSS
    * classes.
    *
    * @param nsIDOMNode node
    *        The newly-created message node.