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:
parent
0154d04535
commit
ff56061853
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user