Skip to content

Commit

Permalink
Fixed IE10 problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
Buchheit committed Apr 25, 2018
1 parent efc5183 commit ca0358b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/popper/src/utils/getWindowSizes.js
Expand Up @@ -8,10 +8,10 @@ function getSize(axis, body, html, computedStyle) {
html[`offset${axis}`],
html[`scroll${axis}`],
isIE(10)
? html[`offset${axis}`] +
computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`] +
computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`]
: 0
? (parseInt(html[`offset${axis}`]) +
parseInt(computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`]) +
parseInt(computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`]))
: 0
);
}

Expand Down

0 comments on commit ca0358b

Please sign in to comment.