mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-10-31 00:04:27 -04:00 
			
		
		
		
	Merge pull request #11722 from DocX/patch-1
Use document scroll height instead of offset height
This commit is contained in:
		
						commit
						0fab6e7ea7
					
				| @ -83,7 +83,7 @@ | |||||||
|       .trigger($.Event(affixType.replace('affix', 'affixed'))) |       .trigger($.Event(affixType.replace('affix', 'affixed'))) | ||||||
| 
 | 
 | ||||||
|     if (affix == 'bottom') { |     if (affix == 'bottom') { | ||||||
|       this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() }) |       this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user