Merge branch 'master' into tsenov/merge-release

This commit is contained in:
Svetoslav
2019-02-22 15:03:21 +02:00
committed by GitHub

View File

@@ -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[] {