diff options
| author | Teddy Wing | 2012-11-11 13:40:42 -0500 |
|---|---|---|
| committer | Teddy Wing | 2012-11-11 13:40:42 -0500 |
| commit | d70521a711046fc802af32e5f18c1013b1dbeace (patch) | |
| tree | ab79348c71994bdca0e6c909dc3de8fbf13935d5 | |
| parent | 5cc8c68d7a960fca265940f310900a3e8c919ff0 (diff) | |
| download | gifmusicvideo-d70521a711046fc802af32e5f18c1013b1dbeace.tar.bz2 | |
Fixed place_gif - no #placer
| -rw-r--r-- | public/js/play_page.js | 7 |
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 |
