Skip to content

Commit

Permalink
fix: scroll issue with the canvas at the bottom of the viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
davidballester committed Apr 17, 2020
1 parent 4013b73 commit 9a887c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/canvas/canvas.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { renderNode, getNodeColor } from './services/node-renderer.service';
import { renderLink, getLinkColor } from './services/link-renderer.service';

const updateDimensions = (setDimensions, containerRef, defaultWidth) => {
const headerHeight = window.innerWidth < 600 ? 60 : 70;
const headerHeight = window.innerWidth < 600 ? 90 : 100;
setDimensions({
width: defaultWidth ? window.innerWidth : containerRef.current.clientWidth,
height: window.innerHeight - headerHeight,
Expand Down

0 comments on commit 9a887c2

Please sign in to comment.