Permalink
Browse files

bugfix

  • Loading branch information...
mariusandra committed Sep 11, 2018
1 parent 6e61f98 commit b4e43310e515209926f9f15040d59bf6ab2a3c43
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/index.js
View
@@ -169,12 +169,14 @@ export default class Map extends Component {
}
updateWidthHeight = () => {
const rect = this._containerRef.getBoundingClientRect()
if (this._containerRef) {
const rect = this._containerRef.getBoundingClientRect()
this.setState({
width: rect.width,
height: rect.height
})
this.setState({
width: rect.width,
height: rect.height
})
}
}
wa = (e, t) => window.addEventListener(e, t)

0 comments on commit b4e4331

Please sign in to comment.