From 3359ff53573a46ce9a69f8c6063ee5dcc0600ba3 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 6 Oct 2019 19:30:00 -0500 Subject: [PATCH] Use offset width / height --- src/components/UI/Grid/Grid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UI/Grid/Grid.js b/src/components/UI/Grid/Grid.js index 2096e9a..1e9d7f4 100644 --- a/src/components/UI/Grid/Grid.js +++ b/src/components/UI/Grid/Grid.js @@ -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 }; };