Skip to content

Commit

Permalink
fix(positionFns): Fix "getComputedStyle" of undefined, #190, #186
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Aug 11, 2016
1 parent d9934c3 commit 1b9000e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/positionFns.es6
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b9000e

Please sign in to comment.