Re: Gallery-devel Digest, Vol 76, Issue 7
gallery-user-jnash <[email protected]> Thu, 16 May 2013 15:00:14 -0400 (EDT)
| Newsgroups | gmane.comp.web.gallery.devel |
|---|---|
| Message-ID | <[email protected]> |
Oh, and sorry, my patch was backwards driven... doh!
On Thu, 16 May 2013, gallery-user-jnash wrote:
> Just a note on the new movie player:
>
> In gallery/modules/gallery/model/item.php
>
> the g-movie div is set so that it sets the div width at resize-width
>
> this is great for 'normal' landscape movies, however, for those (iUsers) who
> like to shoot video in portrait for some ungodly reason, it causes the video
> to be proportionately large.
>
> I've added a little patch to mine to adjust for this:
>
> I also added a small change to the style attributes to center it. I think
> it's more appealing.
>
> Just thoughts for suggestion:
>
>
>
> --- item.php 2013-05-16 14:09:05.336311902 -0400
> +++ /data1/misc/galladd/gallery-git/gallery3/modules/gallery/models/item.php
> 2013-05-05 21:22:02.071816103 -0400
> @@ -766,9 +766,8 @@
> $width = $player_width;
> $height = ceil($width * 3/4);
> }
> - if($height > 640) $player_width = floor($width * (640 / $height));
> $div_attrs = array_merge(array("id" => "g-item-id-{$this->id}"),
> $extra_attrs,
> - array("class" => "g-movie", "style" => "width:
> {$player_width}px; margin-left:auto; margin-right:auto;"));
> + array("class" => "g-movie", "style" => "width:
> {$player_width}px;"));
>
> // Run movie_img events, which can either:
> // - generate a view, which is used in place of the standard
> MediaElementPlayer
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
__[ g a l l e r y - d e v e l ]_________________________
[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]