[auto scroll] fix documention anchor scrolling
This commit is contained in:
		
							parent
							
								
									91fbd0864b
								
							
						
					
					
						commit
						c44276027c
					
				| @ -155,7 +155,7 @@ ul.no-bull.block-audit code{ | |||||||
| #doc-nav-desktop.fixed { | #doc-nav-desktop.fixed { | ||||||
|   float: unset; |   float: unset; | ||||||
|   position: fixed; |   position: fixed; | ||||||
|   top: 20px; |   top: 80px; | ||||||
|   overflow-y: auto; |   overflow-y: auto; | ||||||
|   height: calc(100vh - 50px); |   height: calc(100vh - 50px); | ||||||
|   scrollbar-color: #2d3348 #11131f; |   scrollbar-color: #2d3348 #11131f; | ||||||
|  | |||||||
| @ -43,7 +43,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { | |||||||
|     if (this.faqTemplates) { |     if (this.faqTemplates) { | ||||||
|       this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); |       this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); | ||||||
|     } |     } | ||||||
|     this.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative"; |     this.desktopDocsNavPosition = ( window.pageYOffset > 115 ) ? "fixed" : "relative"; | ||||||
|     this.mobileViewport = window.innerWidth <= 992; |     this.mobileViewport = window.innerWidth <= 992; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| @ -113,7 +113,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   onDocScroll() { |   onDocScroll() { | ||||||
|     this.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative"; |     this.desktopDocsNavPosition = ( window.pageYOffset > 115 ) ? "fixed" : "relative"; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   anchorLinkClick( event: any ) { |   anchorLinkClick( event: any ) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user