set offset height to top of the video

This commit is contained in:
Ilya Grigorik
2016-05-07 12:16:16 -07:00
parent ce2df93797
commit b40b02b769

View File

@@ -95,6 +95,7 @@ chrome.extension.sendMessage({}, function(response) {
container.classList.add('tc-videoController');
controls.classList.add('tc-controls');
container.style.top = this.video.offsetTop+"px";
fragment.appendChild(container);
this.video.parentElement.insertBefore(fragment, this.video);