Skip to content

Commit

Permalink
Modified getDimensions to log returned values
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljaspinski-tomtom committed Aug 18, 2021
1 parent b36c0e0 commit 110bdf7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/ReactFlow.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ReactFlow.esm.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/ReactFlow.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ReactFlow.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const isInputDOMNode = (e: ReactMouseEvent | DraggableEvent | KeyboardEve

export const getDimensions = (node: HTMLDivElement): Dimensions => {
const rect = node.getBoundingClientRect();
console.log('getDimensions returns:',{width: rect.width, height: rect.height})
return {width: rect.width, height: rect.height}
}
// ({
Expand Down

0 comments on commit 110bdf7

Please sign in to comment.