File tree Expand file tree Collapse file tree
applications/virtual-fly-brain/frontend/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import { cypherQuery } from './configuration/VFBGraph/graphConfiguration';
1414import { stylingConfiguration } from './configuration/VFBGraph/graphConfiguration' ;
1515import { getInstanceByID } from '../reducers/actions/instances' ;
1616import { getGraphTypes } from '../reducers/actions/types/getGraphTypes'
17+ import ReactResizeDetector from 'react-resize-detector'
18+
1719/**
1820 * If no configuration is given for queries in graphConfiguration.js, we use this configuration.
1921 */
@@ -482,9 +484,10 @@ class VFBGraph extends Component {
482484 < p style = { { float : "right" , width : "80%" , paddingTop : "2vh" } } > No graph available for { this . getErrorLabel ( ) } </ p >
483485 </ div >
484486 :
487+ < ReactResizeDetector handleWidth handleHeight onResize = { this . resize } skipOnMount = { true } >
485488 < div ref = { this . containerRef } >
486489 < Box sx = { {
487- width : 600 ,
490+ width : '100%' ,
488491 height : 800 ,
489492 backgroundColor : 'primary.dark' ,
490493 '&:hover' : {
@@ -663,6 +666,7 @@ class VFBGraph extends Component {
663666 }
664667 /> </ Box >
665668 </ div >
669+ </ ReactResizeDetector >
666670 )
667671 }
668672}
You can’t perform that action at this time.
0 commit comments