mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	minor changes...
- layout broken for IE8 - switching ribbons still jumps around a couple of times -- probably due to not accounting for the animated padding... Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									1ee6b32cd6
								
							
						
					
					
						commit
						0032531b76
					
				| @ -46,17 +46,14 @@ $(document).ready(function() { | |||||||
| 		var field_offset = field.offset() | 		var field_offset = field.offset() | ||||||
| 
 | 
 | ||||||
| 		// center the current image... | 		// center the current image... | ||||||
| 		field.css({ |  | ||||||
| 				left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2,  |  | ||||||
| 				top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2,  |  | ||||||
| 			}) |  | ||||||
| 
 |  | ||||||
| 		/* XXX this is really jumpy... | 		/* XXX this is really jumpy... | ||||||
| 		field.animate({ | 		field.animate({ | ||||||
| 				left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2,  |  | ||||||
| 				top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2,  |  | ||||||
| 			}) |  | ||||||
| 		*/ | 		*/ | ||||||
|  | 		field.css({ | ||||||
|  | 				left: field_offset.left - image_offset.left + (container.innerWidth() - cur_image.innerWidth())/2,  | ||||||
|  | 				top: field_offset.top - image_offset.top + (container.innerHeight() - cur_image.innerHeight())/2  | ||||||
|  | 			}) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 		e.preventDefault(); | 		e.preventDefault(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user