Skip to content

Commit 371fc9b

Browse files
ADjenkovSvetoslavTsenov
authored andcommitted
fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (NativeScript#6476)
1 parent 58c9d42 commit 371fc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/ui/tab-view/tab-view.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class TabView extends TabViewBase {
482482
public _loadUnloadTabItems(newIndex: number) {
483483
const items = this.items;
484484
const lastIndex = this.items.length - 1;
485-
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 0;
485+
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 1;
486486

487487
let toUnload = [];
488488
let toLoad = [];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy