Scroll-view tests

This commit is contained in:
vakrilov
2016-12-22 13:40:55 +02:00
parent 447ee79cb1
commit 2d05e6ac6f
5 changed files with 30 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
import { ScrollEventData } from "ui/scroll-view";
import { ScrollViewBase, orientationProperty, layout } from "./scroll-view-common";
import { ScrollViewBase, layout } from "./scroll-view-common";
export * from "./scroll-view-common";
@@ -87,7 +87,7 @@ export class ScrollView extends ScrollViewBase {
public _onOrientationChanged() {
if (this._android) {
var parent = this.parent;
const parent = this.parent;
if (parent) {
parent._removeView(this);
@@ -138,11 +138,4 @@ export class ScrollView extends ScrollViewBase {
this._android.getViewTreeObserver().removeOnScrollChangedListener(this.handler);
this.handler = null;
}
get [orientationProperty.native](): "horizontal" | "vertical" {
return "vertical";
}
set [orientationProperty.native](value: "horizontal" | "vertical") {
this._onOrientationChanged();
}
}