http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89089

Revision: 89089
Author:   hartman
Date:     2011-05-29 11:05:37 +0000 (Sun, 29 May 2011)
Log Message:
-----------
What is the point in using <img> width: height: with 100% ? Might as well set 
the actual values if we have them already, saves one step in the rendering of 
the page.

Modified Paths:
--------------
    trunk/extensions/TimedMediaHandler/TimedMediaTransformOutput.php

Modified: trunk/extensions/TimedMediaHandler/TimedMediaTransformOutput.php
===================================================================
--- trunk/extensions/TimedMediaHandler/TimedMediaTransformOutput.php    
2011-05-29 09:32:17 UTC (rev 89088)
+++ trunk/extensions/TimedMediaHandler/TimedMediaTransformOutput.php    
2011-05-29 11:05:37 UTC (rev 89089)
@@ -97,7 +97,8 @@
                                'data-videopayload' => 
$this->getXmlMediaTagOutput( $this->getPopupPlayerSize() ),
                                ),
                        Xml::tags( 'img', array(
-                               'style' => 'width:100%;height:100%;',
+                               'style' => "width:" . intval( $this->width ) . 
"px;height:" . 
+                                                       intval( $this->height ) 
. "px",
                                'src' =>  $this->getUrl(),
                        ),'')
                        .


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to