From b17f1d8cb4815f57a4b7043cc91b867ec3cbc867 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 28 Aug 2017 09:47:06 +0200 Subject: Add conditional topology sidebar --- src/components/map/MapStage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/map') 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) { -- cgit v1.2.3