mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 15:57:30 +03:00 
			
		
		
		
	Fix sticky sidebar when scroll parent is not window
This commit is contained in:
		
							parent
							
								
									a8d74e0b6f
								
							
						
					
					
						commit
						6fb7bd0ba6
					
				|  | @ -47,7 +47,7 @@ export default class StickySidebar { | |||
|   } | ||||
| 
 | ||||
|   get scrollY() { | ||||
|     return (this.scrollParent.pageYOffset !== null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop; | ||||
|     return (this.scrollParent.pageYOffset != null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop; | ||||
|   } | ||||
| 
 | ||||
|   ngOnInit() { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user