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 Svetoslav
parent 58c9d424f5
commit 371fc9b647

View File

@ -482,7 +482,7 @@ export class TabView extends TabViewBase {
public _loadUnloadTabItems(newIndex: number) { public _loadUnloadTabItems(newIndex: number) {
const items = this.items; const items = this.items;
const lastIndex = this.items.length - 1; 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 toUnload = [];
let toLoad = []; let toLoad = [];