forked from EVOgeek/Vmeda.Online
		
	Merge pull request #2527 from dpalou/MOBILE-3464
MOBILE-3464 tabs: Add a setTimeout to get the right height in iOS
This commit is contained in:
		
						commit
						e8a2af4290
					
				| @ -132,7 +132,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe | ||||
|             this.initializeTabs(); | ||||
|         } | ||||
| 
 | ||||
|         this.resizeFunction = this.calculateSlides.bind(this); | ||||
|         this.resizeFunction = this.windowResized.bind(this); | ||||
| 
 | ||||
|         window.addEventListener('resize', this.resizeFunction); | ||||
|     } | ||||
| @ -632,6 +632,15 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Adapt tabs to a window resize. | ||||
|      */ | ||||
|     protected windowResized(): void { | ||||
|         setTimeout(() => { | ||||
|             this.calculateSlides(); | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Component destroyed. | ||||
|      */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user