summaryrefslogtreecommitdiff
path: root/src/components/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/map')
-rw-r--r--src/components/map/MapStage.js3
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) {