From 8b45a05fdc765516ba01cbc37da2edfddd8211cf Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 12 Oct 2009 02:17:44 +0200 Subject: [PATCH] calculate carousel width and height correctly --- bin/mplayer.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/mplayer.pl b/bin/mplayer.pl index e303a68..103776e 100755 --- a/bin/mplayer.pl +++ b/bin/mplayer.pl @@ -226,12 +226,15 @@ sub html5tv { write_file 'www/media.html', $html; + my $carousel_width = $html5tv->{video}->{width} + 4 * 8; # offset 7 + border 1 + my $carousel_height = $html5tv->{slide}->{height} + 2; + write_file 'www/media/video.css', qq| .jcarousel-skin-ie7 .jcarousel-container-horizontal, .jcarousel-skin-ie7 .jcarousel-clip-horizontal { - width: $html5tv->{video}->{width}px; - height: $html5tv->{slide}->{height}px; + width: ${carousel_width}px; + height: ${carousel_height}px; } .jcarousel-skin-ie7 .jcarousel-item { -- 2.20.1