To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4520

Show
Ignore:
Timestamp:
01/27/12 10:37:47 (4 months ago)
Author:
tboutell
Message:

Slideshows are allowed to have the crossfade transition now even if they have no height specified, because John has special case CSS or JS to make that work in some project somewhere. It is up to the developer to understand that they can't specify crossfade (which is not the default transition) unless they have a height on their slideshow. OK so far, but if the developer expressly specifies a maxHeight, that should also be accepted. This change fixes the bug spotted on MO this morning.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.5/lib/action/BaseaSlideshowSlotComponents.class.php

    r4483 r4520  
    8181    $this->options['uncropped'] = $this->getOption('uncropped', false); 
    8282 
     83    // Crossfade doesn't work well without a height unless you do special gymnastics. The simple 
     84    // workaround is to specify maxHeight as a fallback 
     85    if (($this->options['transition'] === 'crossfade') && ($this->options['height'] === false) && ($this->options['maxHeight'] !== false)) 
     86    { 
     87      $this->options['height'] = $this->options['maxHeight']; 
     88    } 
     89 
    8390    // We automatically set up the aspect ratio if the resizeType is set to 'c' 
    8491    $constraints = $this->getOption('constraints', array());