1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00

Make sure to return an object if box doesn't exist

This commit is contained in:
Gary Katsevman 2013-04-30 19:18:21 -04:00
parent 0154d04535
commit ff56061853

View File

@ -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;