mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Merge pull request #119 from istarkov/fix-null-bug
Fix clientWidth of null
This commit is contained in:
commit
b0675a4533
@ -637,6 +637,8 @@ export default class GoogleMap extends Component {
|
||||
}
|
||||
|
||||
_setViewSize = () => {
|
||||
if (!this.mounted_) return;
|
||||
|
||||
const mapDom = ReactDOM.findDOMNode(this.refs.google_map_dom);
|
||||
this.geoService_.setViewSize(mapDom.clientWidth, mapDom.clientHeight);
|
||||
this._onBoundsChanged();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user