Use offset width / height
This commit is contained in:
@@ -32,8 +32,8 @@ export default class extends Component {
|
||||
getSize = () => {
|
||||
const elem = this.refs.GridOwner;
|
||||
return {
|
||||
height: elem ? elem.clientHeight : 0,
|
||||
width: elem ? elem.clientWidth : 0
|
||||
height: elem ? elem.offsetHeight : 0,
|
||||
width: elem ? elem.offsetWidth : 0
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user