File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22	"name" : " jquery-carousel" 
3- 	"version" : " 2.0.1 " 
3+ 	"version" : " 2.0.2 " 
44	"main" : [" ./jquery.carousel.js" 
55	"author" : " Thomas Jaggi" 
66	"dependencies" : {
Original file line number Diff line number Diff line change 988988
989989		// Update slider based on currently visible slides 
990990		// TODO: called twice on init 
991- 		_updateHeight : function ( targetHeight )  { 
991+ 		_updateHeight : function ( )  { 
992992			var  minIndex  =  this . props . currentDomIndex , 
993993				maxIndex  =  minIndex  +  this . props . visible , 
994994				filterSelector  =  ( minIndex  >  0 )  ? ':gt('  +  ( minIndex  -  1 )  +  '):lt('  +  this . props . visible  +  ')'  : ':lt('  +  ( maxIndex )  +  ')' , 
995995				maxHeight  =  this . _getHighestSlide ( ) , 
996+ 				currentFrameHeight  =  this . $dom . frame . height ( ) , 
996997				height  =  this . _getHighestSlide ( filterSelector ) ; 
997998
998- 			if  ( targetHeight )  { 
999- 				height  =  targetHeight ; 
1000- 				maxHeight  =  '100em' ; 
999+ 			if  ( maxHeight  <  currentFrameHeight )  { 
1000+ 				maxHeight  =  currentFrameHeight ; 
10011001			} 
10021002
10031003			this . $dom . slides . css ( 'min-height' ,  maxHeight ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments