Use offset width / height

This commit is contained in:
2019-10-06 19:30:00 -05:00
parent a6163b0b5d
commit 3359ff5357

View File

@@ -32,8 +32,8 @@ export default class extends Component {
getSize = () => { getSize = () => {
const elem = this.refs.GridOwner; const elem = this.refs.GridOwner;
return { return {
height: elem ? elem.clientHeight : 0, height: elem ? elem.offsetHeight : 0,
width: elem ? elem.clientWidth : 0 width: elem ? elem.offsetWidth : 0
}; };
}; };