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

Revision: 73364
Author:   dale
Date:     2010-09-20 08:28:18 +0000 (Mon, 20 Sep 2010)

Log Message:
-----------
fixed gallery pop-up dialog for video clips

Modified Paths:
--------------
    branches/MwEmbedStandAlone/remotes/mediaWiki.js

Modified: branches/MwEmbedStandAlone/remotes/mediaWiki.js
===================================================================
--- branches/MwEmbedStandAlone/remotes/mediaWiki.js     2010-09-20 08:00:28 UTC 
(rev 73363)
+++ branches/MwEmbedStandAlone/remotes/mediaWiki.js     2010-09-20 08:28:18 UTC 
(rev 73364)
@@ -390,11 +390,11 @@
                
                // If in a gallery box or filehistory we will be displaying the 
video larger in a lightbox
                if( $j( '#' + vidId ).parents( '.gallerybox,.filehistory' 
).length ){
-                       // Update the width to 400 and keep scale
+                       // Update the width to 420 and keep scale
                        pwidth = 400;
                        if( pheight != 0 ) {
-                               pheight = pwidth * ( $j( '#' + vidId ).height() 
/ $j( '#' + vidId ).width() );
-                       }                       
+                               pheight = pwidth * (  $j( '#' + vidId 
).height() / $j( '#' + vidId ).width() );
+                       }                                               
                }
                
                if ( src ) {
@@ -455,7 +455,7 @@
                                                        var _this = this;
                                                                        
                                                        var dialogHeight = ( 
pheight == 0       )? 175 :
-                                                                               
                ( pheight - 25 );
+                                                                               
                ( pheight + 25 );
                                                        var buttons = {};
                                                        buttons[ gM( 'mwe-ok' ) 
] = function(){
                                                                var embedPlayer 
= $j( '#mwe_' + $j( _this ).data( 'playerId' ) ).get(0);



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

Reply via email to