From 4ab8f54ac490b0b8666fa2d16707e963f3f3c10e Mon Sep 17 00:00:00 2001 From: ADjenkov Date: Tue, 30 Oct 2018 13:02:38 +0200 Subject: [PATCH] fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs --- tns-core-modules/ui/tab-view/tab-view.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/tab-view/tab-view.android.ts b/tns-core-modules/ui/tab-view/tab-view.android.ts index 041b7a7161..18165feb6f 100644 --- a/tns-core-modules/ui/tab-view/tab-view.android.ts +++ b/tns-core-modules/ui/tab-view/tab-view.android.ts @@ -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 = [];