Merge pull request #2252 from crazyserver/MOBILE-3262
MOBILE-3262 tabs: Ensure tabbar is shown on top scroll
This commit is contained in:
		
						commit
						e09de96e9c
					
				| @ -420,14 +420,18 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         const scroll = parseInt(scrollElement.scrollTop, 10); |         const scroll = parseInt(scrollElement.scrollTop, 10); | ||||||
|         if (scroll == this.lastScroll) { |  | ||||||
|         if (scroll == 0) { |         if (scroll == 0) { | ||||||
|             // Ensure tabbar is shown.
 |             // Ensure tabbar is shown.
 | ||||||
|             this.topTabsElement.style.transform = ''; |             this.topTabsElement.style.transform = ''; | ||||||
|             this.originalTabsContainer.style.transform = ''; |             this.originalTabsContainer.style.transform = ''; | ||||||
|             this.originalTabsContainer.style.paddingBottom = this.tabBarHeight + 'px'; |             this.originalTabsContainer.style.paddingBottom = this.tabBarHeight + 'px'; | ||||||
|  |             this.tabBarElement.classList.remove('tabs-hidden'); | ||||||
|  |             this.tabsShown = true; | ||||||
|  | 
 | ||||||
|  |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (scroll == this.lastScroll) { | ||||||
|             // Ensure scroll has been modified to avoid flicks.
 |             // Ensure scroll has been modified to avoid flicks.
 | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user