diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-28 09:47:06 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:46 +0200 |
| commit | b17f1d8cb4815f57a4b7043cc91b867ec3cbc867 (patch) | |
| tree | 4dfdc2a315b5a6df5a61d862c946542355bcd5d9 /src/components/map | |
| parent | 378059f684ea27f8bf4302dae0a8977a260807f4 (diff) | |
Add conditional topology sidebar
Diffstat (limited to 'src/components/map')
| -rw-r--r-- | src/components/map/MapStage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/map/MapStage.js b/src/components/map/MapStage.js index 879c7c39..644b4c54 100644 --- a/src/components/map/MapStage.js +++ b/src/components/map/MapStage.js @@ -2,6 +2,7 @@ import React from "react"; import {Group, Layer, Stage} from "react-konva"; import DatacenterContainer from "../../containers/map/DatacenterContainer"; import jQuery from "../../util/jquery"; +import {NAVBAR_HEIGHT} from "../navigation/Navbar"; import Backdrop from "./elements/Backdrop"; import GridGroup from "./groups/GridGroup"; import {MAP_SIZE_IN_PIXELS} from "./MapConstants"; @@ -25,7 +26,7 @@ class MapStage extends React.Component { } updateDimensions() { - this.setState({width: jQuery(window).width(), height: jQuery(window).height()}); + this.setState({width: jQuery(window).width(), height: jQuery(window).height() - NAVBAR_HEIGHT}); } dragBoundFunc(pos) { |
