Skip to content

Commit

Permalink
IE10 + IE11 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Buchheit committed Apr 25, 2018
1 parent 52896ee commit f887081
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/popper/tests/unit/getBoundaries.js
Expand Up @@ -54,6 +54,17 @@ describe('utils/getBoundaries', () => {
willChange: 'transform',
});

if(isIE(10) || isIE(11)) {
document.documentElement.getBoundingClientRect = () => {
return {
top: 0,
left: 0,
right: window.innerWidth,
bottom: window.innerHeight,
};
};
}

document.body.appendChild(node);
node.appendChild(spacing);
node.appendChild(scrolling);
Expand Down

0 comments on commit f887081

Please sign in to comment.