Bug 1511883 - The secondary pane should persist its size. r=dwalsh
authorJason Laster <jlaster@mozilla.com>
Mon, 03 Dec 2018 16:37:33 -0500
changeset 449375 20c76341695be6f3a382460814492c95393da5d7
parent 449374 72633f72bd41bff1edd3cdc3d870b10c869b3b22
child 449376 05e25df4db432b6f877658287774d52adf758c43
push id35159
push usercsabou@mozilla.com
push dateWed, 05 Dec 2018 10:20:00 +0000
treeherdermozilla-central@caae48e4e6cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwalsh
bugs1511883
milestone65.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 1511883 - The secondary pane should persist its size. r=dwalsh Tags: Bug #: 1511883 Differential Revision: https://phabricator.services.mozilla.com/D13695
devtools/client/debugger/new/src/components/App.js
--- a/devtools/client/debugger/new/src/components/App.js
+++ b/devtools/client/debugger/new/src/components/App.js
@@ -264,16 +264,17 @@ class App extends Component<Props, State
         style={{ width: "100vw" }}
         initialSize={prefs.endPanelSize}
         minSize={30}
         maxSize={maxSize}
         splitterSize={1}
         vert={horizontal}
         onResizeEnd={num => {
           prefs.endPanelSize = num;
+          this.triggerEditorPaneResize();
         }}
         startPanel={
           <SplitBox
             style={{ width: "100vw" }}
             initialSize={prefs.startPanelSize}
             minSize={30}
             maxSize="85%"
             splitterSize={1}
@@ -288,17 +289,16 @@ class App extends Component<Props, State
         endPanelControl={true}
         endPanel={
           <SecondaryPanes
             horizontal={horizontal}
             toggleShortcutsModal={() => this.toggleShortcutsModal()}
           />
         }
         endPanelCollapsed={endPanelCollapsed}
-        onResizeEnd={this.triggerEditorPaneResize}
       />
     );
   };
 
   renderShortcutsModal() {
     const additionalClass = isMacOS ? "mac" : "";
 
     if (!features.shortcuts) {