aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2012-11-11 13:40:42 -0500
committerTeddy Wing2012-11-11 13:40:42 -0500
commitd70521a711046fc802af32e5f18c1013b1dbeace (patch)
treeab79348c71994bdca0e6c909dc3de8fbf13935d5
parent5cc8c68d7a960fca265940f310900a3e8c919ff0 (diff)
downloadgifmusicvideo-d70521a711046fc802af32e5f18c1013b1dbeace.tar.bz2
Fixed place_gif - no #placer
-rw-r--r--public/js/play_page.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/play_page.js b/public/js/play_page.js
index e76946c..edc6592 100644
--- a/public/js/play_page.js
+++ b/public/js/play_page.js
@@ -91,12 +91,13 @@ function setUpDrag() {
// Place a new gif on the strip
function place_gif (args) {
- $placer = $('#placer');
+ var placer_height = $('#gif_inner').height();
+ var placer_width = placer_height * 1.25;
$('#gif_inner').append('<div class="gif_placed_box placed"></div>');
$('.placed').css({
'left': args.left,
- 'height': $placer.height(),
- 'width': $placer.width(),
+ 'height': placer_height,
+ 'width': placer_width,
'background-image': 'url(' + args.background_url + ')'
}).removeClass('placed');
} \ No newline at end of file