From 1b9000e37bd683b6646afef23dad4a78f7017052 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Thu, 11 Aug 2016 09:40:30 -0500 Subject: [PATCH] fix(positionFns): Fix "getComputedStyle" of undefined, #190, #186 --- lib/utils/positionFns.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/positionFns.es6 b/lib/utils/positionFns.es6 index c6d6b8f4..acd84f07 100644 --- a/lib/utils/positionFns.es6 +++ b/lib/utils/positionFns.es6 @@ -18,7 +18,7 @@ export function getBoundPosition(draggable: Draggable, x: number, y: number): [n if (typeof bounds === 'string') { const {ownerDocument} = node; - const ownerWindow = node.defaultView; + const ownerWindow = ownerDocument.defaultView; let boundNode; if (bounds === 'parent') { boundNode = node.parentNode;