mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Scroll-view tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user