Bug 1550902 - Change max size of Secondary and Editor panes r=davidwalsh
authorDerek Li <the.derekli@gmail.com>
Tue, 14 May 2019 22:07:38 +0000
changeset 535759 b820404d54be6c82689fa631174960551d3347ef
parent 535758 aae069bec8e5d4cf5ebaadf6bd23dd141198e738
child 535760 632f66ae2b3993eb80d0692a0b029221a7a3e69b
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidwalsh
bugs1550902
milestone68.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 1550902 - Change max size of Secondary and Editor panes r=davidwalsh Set a maximum size for panes Differential Revision: https://phabricator.services.mozilla.com/D30743
devtools/client/debugger/src/components/App.js
--- a/devtools/client/debugger/src/components/App.js
+++ b/devtools/client/debugger/src/components/App.js
@@ -265,24 +265,22 @@ class App extends Component<Props, State
       editorPane.dispatchEvent(new Event("resizeend"));
     }
   }
 
   renderLayout = () => {
     const { startPanelCollapsed, endPanelCollapsed } = this.props;
     const horizontal = this.isHorizontal();
 
-    const maxSize = horizontal ? "70%" : "95%";
-
     return (
       <SplitBox
         style={{ width: "100vw" }}
         initialSize={prefs.endPanelSize}
         minSize={30}
-        maxSize={maxSize}
+        maxSize="70%"
         splitterSize={1}
         vert={horizontal}
         onResizeEnd={num => {
           prefs.endPanelSize = num;
           this.triggerEditorPaneResize();
         }}
         startPanel={
           <SplitBox