16672: Fixes panels' vertical space layout issues.
[arvados-workbench2.git] / src / components / multi-panel-view / multi-panel-view.tsx
index 6fb3cc4966e2a51b7a9d8dd50c0e0dbf9858e8af..b242f805a4e6f899cfd058eb06e3136039bfdb44 100644 (file)
@@ -33,6 +33,7 @@ const styles: StyleRulesCallback<CssRules> = theme => ({
     },
     content: {
         overflow: 'auto',
+        height: '100%',
     },
 });
 
@@ -85,7 +86,7 @@ export const MPVPanelContent = ({doHidePanel, doMaximizePanel, panelName, panelM
         }
     }, [panelRef]);
 
-    return <Grid item {...props}>
+    return <Grid item style={{height: '100%'}} {...props}>
         <span ref={panelRef} /> {/* Element to scroll to when the panel is selected */}
         <Paper style={{height: '100%'}} elevation={panelIlluminated ? 8 : 0}>
             { forwardProps