fix positions

This commit is contained in:
j 2013-02-12 16:50:07 +05:30
parent 235e9e6faa
commit 672558d104
2 changed files with 5 additions and 5 deletions

View File

@ -20,5 +20,5 @@
bottom: 8px;
}
.interface {
position: relative;
}
position: absolute;
}

View File

@ -1,5 +1,5 @@
function getVideoOverlay(page) {
return videoOverlay[page] ? {
return (editable || videoOverlay[page]) ? {
beginLayout: function() {
this.counter = 0;
//console.log('lets beging');
@ -10,14 +10,14 @@ function getVideoOverlay(page) {
appendImage: function(image) {
this.counter++;
var id = this.counter;
if (videoOverlay[page][id] || editable) {
if (editable || videoOverlay[page][id]) {
var div = document.createElement('div');
div.className = 'interface';
div.style.left = image.left + 'px';
div.style.top = image.top + 'px';
div.style.width = image.width + 'px';
div.style.height = image.height + 'px';
if (videoOverlay[page][id]) {
if (videoOverlay[page] && videoOverlay[page][id]) {
div.title = 'Click to Play';
div.onclick = function(event) {
event.preventDefault();