Changeset 29638 for extensions


Ignore:
Timestamp:
Sep 19, 2014, 12:23:14 PM (10 years ago)
Author:
JanisV
Message:

Implemented resizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/fotorama-content.tpl

    r29626 r29638  
    8787        // Initialize fotorama manually
    8888        .fotorama();
    89      
    90       {if $Fotorama.only_fullscreen}
    91       jQuery('.fotorama').data('fotorama').requestFullScreen();
    92       {/if}
     89
     90    {if $Fotorama.only_fullscreen}
     91    jQuery('.fotorama').data('fotorama').requestFullScreen();
     92    {else}
     93    jQuery('.fotorama').data('fotorama').resize({
     94      height: jQuery(window).height()
     95    });
     96    {/if}
     97 
     98    $('html,body').animate({ scrollTop: jQuery('.fotorama').offset().top }, 'slow');
    9399  });
    94100{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.