Viewport fills entire screen (#430)

* full pane webgl and svg

* fixes for full pane selection and centering

* force graph remount, clear brush state
This commit is contained in:
Colin Megill
2018-11-13 11:45:38 -05:00
committed by GitHub
parent 9decf134e0
commit dbff824854
6 changed files with 45 additions and 31 deletions
+4 -5
View File
@@ -11,7 +11,8 @@ import actions from "../actions";
@connect(state => ({
loading: state.controls.loading,
error: state.controls.error
error: state.controls.error,
graphRenderCounter: state.controls.graphRenderCounter
}))
class App extends React.Component {
constructor(props) {
@@ -54,7 +55,7 @@ class App extends React.Component {
}
render() {
const { loading } = this.props;
const { loading, error, graphRenderCounter } = this.props;
return (
<Container>
<Helmet title="cellxgene" />
@@ -79,10 +80,8 @@ class App extends React.Component {
marginLeft: 350 /* but responsive */
}}
>
{loading ? null : <Graph />}
{loading ? null : <Graph key={graphRenderCounter} />}
<Legend />
{}
</div>
</div>
</Container>