diff options
| -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  | 
