1
0
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:
Steve Heffernan 2013-05-03 12:51:24 -07:00
commit a799a506f4

View File

@ -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();
}