Merge pull request #119 from istarkov/fix-null-bug

Fix clientWidth of null
This commit is contained in:
Ivan Starkov 2016-03-18 00:52:37 +03:00
commit b0675a4533

View File

@ -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();