Bug 1208489 - use resizebefore attribute on devtools horizontal splitter to avoid resizing notificationboxen, r?bgrins draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 07 Jul 2016 16:38:27 +0100
changeset 385044 742b2dc71b56e32a23ca426713b3eb53a7d65f48
parent 385043 ba5ff277a3cd1a7f655f8e02a130a395e8f2a225
child 524832 42432702a01807f2b6a40026ffe380924f324fc8
push id22407
push usergijskruitbosch@gmail.com
push dateThu, 07 Jul 2016 15:38:49 +0000
reviewersbgrins
bugs1208489
milestone50.0a1
Bug 1208489 - use resizebefore attribute on devtools horizontal splitter to avoid resizing notificationboxen, r?bgrins 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 = 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
     );