1248301- Do not cause a horizontal scrollbar to appear in the console when it overflows vertically;r=vporof draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Wed, 17 Feb 2016 11:49:19 -0800
changeset 331661 841d9b399352f8c0047d7c9b56a9411a1767e0c8
parent 331660 874d13a1b6ead378f77e7f7a8d6719e4885c4eaf
child 514420 2a7537cf20006460533e910176da5cab97c7e723
push id11025
push userbgrinstead@mozilla.com
push dateWed, 17 Feb 2016 19:49:31 +0000
reviewersvporof
bugs1248301
milestone47.0a1
1248301- Do not cause a horizontal scrollbar to appear in the console when it overflows vertically;r=vporof MozReview-Commit-ID: DpHEycUVcTs
devtools/client/webconsole/webconsole.js
--- a/devtools/client/webconsole/webconsole.js
+++ b/devtools/client/webconsole/webconsole.js
@@ -2085,16 +2085,19 @@ WebConsoleFrame.prototype = {
     if (this._outputQueue.length === 0 && this._flushCallback) {
       if (this._flushCallback() === false) {
         this._flushCallback = null;
       }
     }
 
     this._initOutputTimer();
 
+    // Resize the output area in case a vertical scrollbar has been added
+    this.resize();
+
     this._lastOutputFlush = Date.now();
   },
 
   /**
    * Initialize the output timer.
    * @private
    */
   _initOutputTimer: function() {