Advertisement
AlessandroMarotta

Autoheight

Feb 12th, 2016
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --> foundation.orbit.js
  2.  
  3. [...]
  4.          if(counter){//if not the first slide, set css position and display property
  5.             $(this).css({'position': 'relative', 'display': 'none'});
  6.           }
  7.           max = temp > max ? temp : max;
  8.           counter++;
  9.         });
  10.     //DISABLE height property --> row 236
  11.         /*if(counter === this.$slides.length){
  12.           this.$wrapper.css({'height': 'auto'});//only change the wrapper height property once.
  13.           cb(max);//fire callback with max height dimension.
  14.         } */
  15.       };
  16.       /**
  17.       * Sets the max-height of each slide.
  18.       * @function
  19.       * @private
  20.       */
  21.     //DISABLE max-height property --> 246
  22.       /*Orbit.prototype._setSlideHeight = function(height){
  23.         this.$slides.each(function(){
  24.           $(this).css('max-height', height);
  25.         });
  26.       };*/
  27.       /**
  28.       * Adds event listeners to basically everything within the element.
  29.       * @function
  30.       * @private
  31.       */
  32.       Orbit.prototype._events = function(){
  33.         var _this = this;
  34. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement