Sha256: 5c8d9aa673b46e7e9b2e29bc16595e4b29672e80b72da773ff0e2304fa529b17

Contents?: true

Size: 900 Bytes

Versions: 11

Compression:

Stored size: 900 Bytes

Contents

      // change layout
      var isHorizontal = false;
      function changeLayoutMode( $link, options ) {
        var wasHorizontal = isHorizontal;
        isHorizontal = $link.hasClass('horizontal');

        if ( wasHorizontal !== isHorizontal ) {
          // orientation change
          // need to do some clean up for transitions and sizes
          var style = isHorizontal ? 
            { height: '80%', width: $container.width() } : 
            { width: 'auto' };
          // stop any animation on container height / width
          $container.filter(':animated').stop();
          // disable transition, apply revised style
          $container.addClass('no-transition').css( style );
          setTimeout(function(){
            $container.removeClass('no-transition').isotope( options );
          }, 100 )
        } else {
          $container.isotope( options );
        }
      }

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/javascript/library/jQuery/isotope/_includes/layout-change.js