Bug 1272460 - Make the new console take the full width of the window. r=bgrins
authorNicolas Chevobbe <nch@atolcd.com>
Thu, 26 May 2016 10:17:11 -0700
changeset 338104 7b2fc29e5d9db05f171dea679a3e5d50f8a9e2d6
parent 338103 d495fe0a0cb21d80da64bd3d2c3e8b44e582ecb3
child 338105 6a6155e3afa6148ef93255e6d9e126c2974f0319
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1272460
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1272460 - Make the new console take the full width of the window. r=bgrins MozReview-Commit-ID: FpdVHkId0D8
devtools/client/webconsole/webconsole.js
--- a/devtools/client/webconsole/webconsole.js
+++ b/devtools/client/webconsole/webconsole.js
@@ -632,17 +632,22 @@ WebConsoleFrame.prototype = {
   },
 
   /**
    * Resizes the output node to fit the output wrapped.
    * We need this because it makes the layout a lot faster than
    * using -moz-box-flex and 100% width.  See Bug 1237368.
    */
   resize: function () {
-    this.outputNode.style.width = this.outputWrapper.clientWidth + "px";
+    if (this.NEW_CONSOLE_OUTPUT_ENABLED) {
+      this.experimentalOutputNode.style.width =
+        this.outputWrapper.clientWidth + "px";
+    } else {
+      this.outputNode.style.width = this.outputWrapper.clientWidth + "px";
+    }
   },
 
   /**
    * Sets the focus to JavaScript input field when the web console tab is
    * selected or when there is a split console present.
    * @private
    */
   _onPanelSelected: function () {