fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476)

This commit is contained in:
Alexander Djenkov
2018-10-30 14:24:55 +02:00
committed by dtopuzov
parent e20d85f84f
commit 61bda9ecdf

View File

@ -482,7 +482,7 @@ export class TabView extends TabViewBase {
public _loadUnloadTabItems(newIndex: number) {
const items = this.items;
const lastIndex = this.items.length - 1;
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 0;
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 1;
let toUnload = [];
let toLoad = [];