Skip to content

Commit

Permalink
Refactor #2406
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 11, 2021
1 parent 2572d96 commit 2af6fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/utils/DomHandler.js
Expand Up @@ -34,7 +34,7 @@ export default class DomHandler {

static getOuterWidth(el, margin) {
if (el) {
let width = el.offsetWidth ?? el.getBoundingClientRect().width;
let width = el.offsetWidth || el.getBoundingClientRect().width;

if (margin) {
let style = getComputedStyle(el);
Expand All @@ -48,7 +48,7 @@ export default class DomHandler {

static getOuterHeight(el, margin) {
if (el) {
let height = el.offsetHeight ?? el.getBoundingClientRect().height;
let height = el.offsetHeight || el.getBoundingClientRect().height;

if (margin) {
let style = getComputedStyle(el);
Expand Down

0 comments on commit 2af6fa2

Please sign in to comment.