From 672558d1041b78f876283d5164740c265d99dda7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 12 Feb 2013 16:50:07 +0530 Subject: [PATCH] fix positions --- static/css/videopdf.css | 4 ++-- static/videoOverlay.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/css/videopdf.css b/static/css/videopdf.css index ac7aca7..719f637 100644 --- a/static/css/videopdf.css +++ b/static/css/videopdf.css @@ -20,5 +20,5 @@ bottom: 8px; } .interface { - position: relative; -} \ No newline at end of file + position: absolute; +} diff --git a/static/videoOverlay.js b/static/videoOverlay.js index 8457d37..b2d40f1 100644 --- a/static/videoOverlay.js +++ b/static/videoOverlay.js @@ -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();