mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge branch 'master' into tsenov/merge-release
This commit is contained in:
@@ -643,11 +643,13 @@ export class TabView extends TabViewBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[selectedIndexProperty.setNative](value: number) {
|
[selectedIndexProperty.setNative](value: number) {
|
||||||
|
const smoothScroll = this.androidTabsPosition === "top";
|
||||||
|
|
||||||
if (traceEnabled()) {
|
if (traceEnabled()) {
|
||||||
traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", true);", traceCategory);
|
traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", " + smoothScroll + ");", traceCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._viewPager.setCurrentItem(value, true);
|
this._viewPager.setCurrentItem(value, smoothScroll);
|
||||||
}
|
}
|
||||||
|
|
||||||
[itemsProperty.getDefault](): TabViewItem[] {
|
[itemsProperty.getDefault](): TabViewItem[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user