use slide.width and heights for carousel
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Oct 2009 21:24:35 +0000 (23:24 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Oct 2009 21:24:35 +0000 (23:24 +0200)
www/html5tv.js

index f8e14b8..2262545 100644 (file)
@@ -16,7 +16,7 @@ function myCarousel_onBeforeAnimation(carousel, state) {
 \r
         var event = carousel.options.customEventManager.getEvent(i - 1);\r
 \r
-        var html = '<img src="' + event.args.src + '" width="117" height="66" alt="' + event.args.description + '" id="' + event.args.id + '" /><div class="thumbnailOverlay">' + event.args.title + '</div>';\r
+        var html = '<img src="' + event.args.src + '" width="' + html5tv.slide.width + '" height="' + html5tv.slide.height + '" alt="' + event.args.description + '" id="' + event.args.id + '" /><div class="thumbnailOverlay">' + event.args.title + '</div>';\r
 \r
         carousel.add(i, html);\r
 \r