Author: rmarianski
Date: 2009-10-28 17:49:35 -0400 (Wed, 28 Oct 2009)
New Revision: 25849

Modified:
   
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/functions.php
   
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/index.php
Log:
some height manipulation/hackery/tomfoolery to get rid of the gray bar

Modified: 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/functions.php
===================================================================
--- 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/functions.php
       2009-10-28 21:07:11 UTC (rev 25848)
+++ 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/functions.php
       2009-10-28 21:49:35 UTC (rev 25849)
@@ -129,7 +129,7 @@
   if ($size == "16_9")
     $height = 315;
   else
-    $height = 459.2;
+    $height = 420;
 
   $video = array(
                  'id' => $post->ID,

Modified: 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/index.php
===================================================================
--- 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/index.php
   2009-10-28 21:07:11 UTC (rev 25848)
+++ 
streetsblog/branches/streetfilms_redesign/wp-content/themes/streetfilms/index.php
   2009-10-28 21:49:35 UTC (rev 25849)
@@ -352,11 +352,24 @@
     $j('.reddit').attr('href', 'http://www.reddit.com/submit?url=' + 
post['permalink'] + '&title=' + post['title_attribute']);
     $j('.mixx').attr('href', 'http://www.mixx.com/submit?page_url=' + 
post['permalink']);
 
-    sfilmPlayer.find('object').css('height', post['video_height']);
-    $f().stop();
-    $f().setClip(post['video_flv']);
+    var flow = $f();
+    the_post = post;
+    the_flow = flow;
+    flow.stop();
     $j('html,body').animate({scrollTop: 0}, 400);
+    sfilmPlayer.find('object').attr('height', 
24+parseInt(post['video_height']));
+    sfilmPlayer.find('object').css('height', 
24+parseInt(post['video_height']));
+    flow.setClip(post['video_flv']);
+    flow.getScreen().css({height: post['video_height'], width: 560});
     $f().play();
+    var hackVideoHeight = function() {
+      flow.getScreen().css({height: post['video_height'], width: 560});
+    };
+    // XXX for some reason, setting the screen height right after doesn't work
+    // but needs some time before it can kick in and fix it
+    setTimeout(hackVideoHeight, 500);
+    setTimeout(hackVideoHeight, 1000);
+    setTimeout(hackVideoHeight, 2000);
   });
 }
 



--
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to