1248301- Do not cause a horizontal scrollbar to appear in the console when it overflows vertically;r=vporof
draft
1248301- Do not cause a horizontal scrollbar to appear in the console when it overflows vertically;r=vporof
MozReview-Commit-ID: DpHEycUVcTs
--- 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() {