Skip to content

Commit

Permalink
fix(tab-view-android): change androidOffscreenTabLimit to 1 when usin…
Browse files Browse the repository at this point in the history
…g bottom tabs (#6476)
  • Loading branch information
ADjenkov authored and SvetoslavTsenov committed Oct 30, 2018
1 parent 58c9d42 commit 371fc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tns-core-modules/ui/tab-view/tab-view.android.ts
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 371fc9b

Please sign in to comment.