Skip to content

Commit 651086b

Browse files
author
Lucas Rebscher
committed
#281 Make tabs scrollable again
1 parent 26b2170 commit 651086b

3 files changed

Lines changed: 15 additions & 34 deletions

File tree

webapp/components/definition/configuration/NetPyNESimConfig.js

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NetPyNESimConfig extends React.Component {
3131
});
3232

3333
render () {
34-
var contentLeft = <div className="layoutVerticalFitInner" />;
34+
let contentLeft = <div className="layoutVerticalFitInner" />;
3535
let contentRight = <div className="layoutVerticalFitInner" />;
3636
const { classes } = this.props;
3737
if (this.state.sectionId == 'General') {
@@ -174,7 +174,7 @@ class NetPyNESimConfig extends React.Component {
174174
);
175175
} else if (this.state.sectionId == 'SaveConfiguration') {
176176
contentLeft = (
177-
<div>
177+
<div className="scrollbar scrollchild">
178178
<NetPyNEField id="simConfig.simLabel">
179179
<NetPyNETextField
180180
fullWidth
@@ -215,7 +215,7 @@ class NetPyNESimConfig extends React.Component {
215215
</div>
216216
);
217217
contentRight = (
218-
<div>
218+
<div className="scrollbar scrollchild">
219219
<NetPyNEField id="simConfig.saveJson" className="netpyneCheckbox">
220220
<NetPyNECheckbox model="simConfig.saveJson" />
221221
</NetPyNEField>
@@ -248,23 +248,6 @@ class NetPyNESimConfig extends React.Component {
248248
>
249249
<NetPyNECheckbox model="simConfig.timestampFilename" />
250250
</NetPyNEField>
251-
{/*
252-
// TODO: can this be removed?
253-
<NetPyNEField id="simConfig.saveHDF5" className={"netpyneCheckbox"} >
254-
<NetPyNECheckbox model={"simConfig.saveHDF5"} />
255-
</NetPyNEField>
256-
257-
<NetPyNEField id="simConfig.saveDpk" className={"netpyneCheckbox"} >
258-
<NetPyNECheckbox model={"simConfig.saveDpk"} />
259-
</NetPyNEField>
260-
261-
<NetPyNEField id="simConfig.saveDat" className={"netpyneCheckbox"} >
262-
<NetPyNECheckbox model={"simConfig.saveDat"} />
263-
</NetPyNEField>
264-
265-
<NetPyNEField id="simConfig.saveCSV" className={"netpyneCheckbox"} >
266-
<NetPyNECheckbox model={"simConfig.saveCSV"} />
267-
</NetPyNEField> */}
268251

269252
<NetPyNEField id="simConfig.saveTiming" className="netpyneCheckbox">
270253
<NetPyNECheckbox model="simConfig.saveTiming" />
@@ -273,7 +256,7 @@ class NetPyNESimConfig extends React.Component {
273256
);
274257
} else if (this.state.sectionId == 'Record') {
275258
contentLeft = (
276-
<div>
259+
<div className="scrollbar scrollchild">
277260
<NetPyNEField id="simConfig.recordCells" className="listStyle">
278261
<ListComponent model="simConfig.recordCells" />
279262
</NetPyNEField>
@@ -296,7 +279,7 @@ class NetPyNESimConfig extends React.Component {
296279
</div>
297280
);
298281
contentRight = (
299-
<div>
282+
<div className="scrollbar scrollchild">
300283
<NetPyNEField
301284
id="simConfig.saveLFPCells"
302285
className="netpyneCheckbox"
@@ -315,8 +298,8 @@ class NetPyNESimConfig extends React.Component {
315298
</div>
316299
);
317300
} else if (this.state.sectionId == 'netParams') {
318-
var contentLeft = (
319-
<div>
301+
contentLeft = (
302+
<div className="scrollbar scrollchild">
320303
<NetPyNEField id="netParams.scale">
321304
<NetPyNETextField
322305
fullWidth
@@ -366,7 +349,7 @@ class NetPyNESimConfig extends React.Component {
366349
</div>
367350
);
368351
contentRight = (
369-
<div>
352+
<div className="scrollbar scrollchild">
370353
<NetPyNEField id="netParams.sizeX">
371354
<NetPyNETextField
372355
fullWidth

webapp/components/definition/stimulationSources/NetPyNEStimulationSource.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class NetPyNEStimulationSource extends React.Component {
175175

176176
if (this.state.sourceType == 'IClamp') {
177177
var variableContent = (
178-
<div>
178+
<div className="scrollbar scrollchild">
179179
<NetPyNEField id="netParams.stimSourceParams.del">
180180
<NetPyNETextField
181181
variant="filled"
@@ -209,7 +209,7 @@ class NetPyNEStimulationSource extends React.Component {
209209
);
210210
} else if (this.state.sourceType == 'VClamp') {
211211
var variableContent = (
212-
<div>
212+
<div className="scrollbar scrollchild">
213213
<NetPyNEField id="netParams.stimSourceParams.tau1">
214214
<NetPyNETextField
215215
variant="filled"
@@ -275,7 +275,7 @@ class NetPyNEStimulationSource extends React.Component {
275275
);
276276
} else if (this.state.sourceType == 'AlphaSynapse') {
277277
var variableContent = (
278-
<div>
278+
<div className="scrollbar scrollchild">
279279
<NetPyNEField id="netParams.stimSourceParams.onset">
280280
<NetPyNETextField
281281
variant="filled"
@@ -319,7 +319,7 @@ class NetPyNEStimulationSource extends React.Component {
319319
);
320320
} else if (this.state.sourceType == 'NetStim') {
321321
var variableContent = (
322-
<div>
322+
<div className="scrollbar scrollchild">
323323
<NetPyNEField id="netParams.stimSourceParams.rate">
324324
<NetPyNETextField
325325
variant="filled"
@@ -377,7 +377,7 @@ class NetPyNEStimulationSource extends React.Component {
377377
);
378378
} else if (this.state.sourceType == 'SEClamp') {
379379
var variableContent = (
380-
<div>
380+
<div className="scrollbar scrollchild">
381381
<NetPyNEField
382382
id="netParams.stimSourceParams.vClampDur"
383383
className="listStyle"

webapp/components/definition/synapses/NetPyNESynapse.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React from 'react';
22
import TextField from '@material-ui/core/TextField';
33
import Box from '@material-ui/core/Box';
44
import Dialog from '@material-ui/core/Dialog/Dialog';
@@ -140,9 +140,7 @@ class NetPyNESynapse extends React.Component {
140140
</Button>
141141
</DialogActions>
142142
</Dialog>
143-
) : (
144-
undefined
145-
);
143+
) : undefined;
146144

147145
if (this.state.synMechMod == '' || this.state.synMechMod == undefined) {
148146
var content = <div />;

0 commit comments

Comments
 (0)