mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-04 05:10:07 +00:00 
			
		
		
		
	more work on migrating to loadImagesAround(...), seem to have defeated it\!
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									3596d55f96
								
							
						
					
					
						commit
						3be8f6cf36
					
				@ -1417,7 +1417,7 @@ function loadImagesAround(count, gid, ribbon, data){
 | 
			
		||||
		right = null
 | 
			
		||||
	}
 | 
			
		||||
	*/
 | 
			
		||||
	// XXX this section is WRONG...
 | 
			
		||||
	// XXX might be magic but now this appears to work!!!
 | 
			
		||||
	// no common sections, do a full reload...
 | 
			
		||||
	//if(left == null && right == null){
 | 
			
		||||
	if(left == null || right == null){
 | 
			
		||||
@ -1432,10 +1432,7 @@ function loadImagesAround(count, gid, ribbon, data){
 | 
			
		||||
 | 
			
		||||
		// calculate the offset...
 | 
			
		||||
		left = o - n
 | 
			
		||||
		// XXX do we need to subtract 1 here???
 | 
			
		||||
		right = new_ribbon.length - left
 | 
			
		||||
 | 
			
		||||
		console.log('>>>>', n, '---', left, right, '-- count:', count, 'L:', new_ribbon.length)
 | 
			
		||||
		right = new_ribbon.length - old_ribbon.length - left
 | 
			
		||||
 | 
			
		||||
		extendRibbon(left, right, ribbon_elem)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user