File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ function App() {
257
257
const group2 = < >
258
258
< Files hidden = { hideFiles } webR = { webR } filesInterface = { filesInterface } />
259
259
< PanelResizeHandle hidden = { hideFiles || hidePlot } />
260
- < Plot hidden = { hidePlot } webR = { webR } plotInterface = { plotInterface } />
260
+ < Plot hidden = { hidePlot } maximize = { hideFiles } webR = { webR } plotInterface = { plotInterface } />
261
261
</ > ;
262
262
263
263
return (
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ import { WebR } from '../../webR/webr-main';
8
8
export function Plot ( {
9
9
webR,
10
10
plotInterface,
11
+ maximize,
11
12
hidden,
12
13
} : {
13
14
webR : WebR ;
14
15
plotInterface : PlotInterface ;
16
+ maximize : boolean ,
15
17
hidden : boolean ;
16
18
} ) {
17
19
const plotContainerRef = React . useRef < HTMLDivElement | null > ( null ) ;
@@ -117,7 +119,8 @@ export function Plot({
117
119
hidden = { hidden }
118
120
role = "region"
119
121
aria-label = "Plotting Pane"
120
- minSize = { 20 }
122
+ minSize = { maximize ? 100 : 20 }
123
+ defaultSize = { maximize ? 100 : 50 }
121
124
onResize = { onResize }
122
125
ref = { panelRef }
123
126
>
You can’t perform that action at this time.
0 commit comments