mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476)
This commit is contained in:

committed by
dtopuzov

parent
e20d85f84f
commit
61bda9ecdf
@ -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 = [];
|
||||
|
Reference in New Issue
Block a user