diff --git a/src/js/lib.js b/src/js/lib.js index ef6436330..3462fb0b3 100644 --- a/src/js/lib.js +++ b/src/js/lib.js @@ -593,7 +593,12 @@ vjs.findPosition = function(el) { box = el.getBoundingClientRect(); - if (!box) { return 0; } + if (!box) { + return { + left: 0, + top: 0 + }; + } docEl = document.documentElement; body = document.body;