Bug 1208489 - use resizebefore attribute on devtools horizontal splitter to avoid resizing notificationboxes, r=bgrins a=lizzard
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 07 Jul 2016 16:38:27 +0100
changeset 339935 5849e67a8dbab1086a2b5e2b9a569f446cb15995
parent 339934 392198ab803237ab8746c9c2e737c252f05e98a7
child 339936 ce26d5834678f648f49926fd637e2c90a14df8b4
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, lizzard
bugs1208489
milestone49.0a2
Bug 1208489 - use resizebefore attribute on devtools horizontal splitter to avoid resizing notificationboxes, r=bgrins a=lizzard MozReview-Commit-ID: 9ijDB4fFhA3
devtools/client/framework/toolbox-hosts.js
--- a/devtools/client/framework/toolbox-hosts.js
+++ b/devtools/client/framework/toolbox-hosts.js
@@ -57,16 +57,18 @@ BottomHost.prototype = {
     let deferred = promise.defer();
 
     let gBrowser = this.hostTab.ownerDocument.defaultView.gBrowser;
     let ownerDocument = gBrowser.ownerDocument;
     this._nbox = gBrowser.getNotificationBox(this.hostTab.linkedBrowser);
 
     this._splitter = ownerDocument.createElement("splitter");
     this._splitter.setAttribute("class", "devtools-horizontal-splitter");
+    // Avoid resizing notification containers
+    this._splitter.setAttribute("resizebefore", "flex");
 
     this.frame = ownerDocument.createElement("iframe");
     this.frame.className = "devtools-toolbox-bottom-iframe";
     this.frame.height = Math.min(
       Services.prefs.getIntPref(this.heightPref),
       this._nbox.clientHeight - MIN_PAGE_SIZE
     );