[xiph-commits] r3959 - in itext: . skins/schmucker

silvia at svn.annodex.net silvia at svn.annodex.net
Tue Jul 21 00:06:59 PDT 2009


Author: silvia
Date: 2009-07-21 00:06:59 -0700 (Tue, 21 Jul 2009)
New Revision: 3959

Modified:
   itext/
   itext/skins/schmucker/tinyvid.js
Log:
Fix display of captions bottom center and width.



Property changes on: itext
___________________________________________________________________
Modified: bzr:revision-info
   - timestamp: 2009-07-18 21:34:24.071000099 +1000
committer: Silvia Pfeiffer <silvia.pfeiffer at vquence.com>
properties: 
	branch-nick: silvia

   + timestamp: 2009-07-18 21:34:45.003999949 +1000
committer: Silvia Pfeiffer <silvia.pfeiffer at vquence.com>
properties: 
	branch-nick: silvia

Modified: bzr:file-ids
   - javascript/subtitles.js	subtitles.js-20090718094218-d45036mvytq5pecp-10

   + skins/schmucker/tinyvid.js	tinyvid.js-20090718094218-d45036mvytq5pecp-53

Modified: bzr:revision-id:v4
   - 1 silvia.pfeiffer at vquence.com-20090713110521-cz7evclxohf4rbs2
2 silvia.pfeiffer at vquence.com-20090714003359-apmpuor2ttarph5n
3 silvia.pfeiffer at vquence.com-20090714143931-q6j8ritt91jn5rhu
4 silvia.pfeiffer at vquence.com-20090718094222-58zgcmsg9gggbnt1
5 silvia.pfeiffer at vquence.com-20090718094708-wb83p9u6jr1xlhm6
6 silvia.pfeiffer at vquence.com-20090718095409-p6en5qufj62m8w3h
7 silvia.pfeiffer at vquence.com-20090718113424-9s8cmt1guxj6qoky

   + 1 silvia.pfeiffer at vquence.com-20090713110521-cz7evclxohf4rbs2
2 silvia.pfeiffer at vquence.com-20090714003359-apmpuor2ttarph5n
3 silvia.pfeiffer at vquence.com-20090714143931-q6j8ritt91jn5rhu
4 silvia.pfeiffer at vquence.com-20090718094222-58zgcmsg9gggbnt1
5 silvia.pfeiffer at vquence.com-20090718094708-wb83p9u6jr1xlhm6
6 silvia.pfeiffer at vquence.com-20090718095409-p6en5qufj62m8w3h
7 silvia.pfeiffer at vquence.com-20090718113424-9s8cmt1guxj6qoky
8 silvia.pfeiffer at vquence.com-20090718113445-n0q9c14w4i11pe36

Modified: bzr:text-parents
   - 
   + skins/schmucker/tinyvid.js	silvia.pfeiffer at vquence.com-20090718094222-58zgcmsg9gggbnt1


Modified: itext/skins/schmucker/tinyvid.js
===================================================================
--- itext/skins/schmucker/tinyvid.js	2009-07-21 07:06:52 UTC (rev 3958)
+++ itext/skins/schmucker/tinyvid.js	2009-07-21 07:06:59 UTC (rev 3959)
@@ -252,8 +252,9 @@
 			$(".captioncontainer").html(content);
 			$(".captioncontainer").css("visibility", "visible");
 			// anyone with a better idea for how to place the captions bottom center, please speak up
-			cb_half_left = $('.mc').css("width").substr(0,$('.mc').css("width").length-2)/2+"px";
-			$(".captioncontainer").css("left", cb_half_left);
+			mc_width = $('.mc').css("width").substr(0,$('.mc').css("width").length-2)
+			$(".captioncontainer").css("width", (mc_width-14)+"px");
+			$(".captioncontainer").css("left", (mc_width/2+7)+"px");
 			text_half_length = $('.text').css("width").substr(0,$('.text').css("width").length-2)/2*(-1)+"px";
 			$(".captioncontainer").css("margin-left", text_half_length);
 		} else {



More information about the commits mailing list