mirror of
https://github.com/videojs/video.js.git
synced 2024-12-27 02:43:45 +02:00
Merge pull request #489 from heff/feature/position-fix
Fixed vjs.findPosition. fixes #488
This commit is contained in:
commit
a799a506f4
@ -595,7 +595,7 @@ vjs.log = function(){
|
||||
vjs.findPosition = function(el) {
|
||||
var box, docEl, body, clientLeft, scrollLeft, left, clientTop, scrollTop, top;
|
||||
|
||||
if (el.getBoundingClientRect) {
|
||||
if (el.getBoundingClientRect && el.parentNode) {
|
||||
box = el.getBoundingClientRect();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user