Skip to content

Commit

Permalink
Partially revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahutchings committed Dec 22, 2017
1 parent c417249 commit 0827bde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/vendor/detectElementResize.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ export default function createDetectElementResize(nonce) {
} else {
if (!element.__resizeTriggers__) {
var doc = element.ownerDocument;
var win = doc.defaultView;
var elementStyle = win.getComputedStyle(element);
var elementStyle = _window.getComputedStyle(element);
if (elementStyle && elementStyle.position == 'static') {
element.style.position = 'relative';
}
Expand Down

0 comments on commit 0827bde

Please sign in to comment.