mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fixed enum value name
This commit is contained in:
2
org.nativescript.widgets.d.ts
vendored
2
org.nativescript.widgets.d.ts
vendored
@ -62,7 +62,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum Orientation {
|
export enum Orientation {
|
||||||
horzontal,
|
horizontal,
|
||||||
vertical
|
vertical
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ export class StackLayout extends common.StackLayout {
|
|||||||
static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void {
|
static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void {
|
||||||
var stackLayout = <StackLayout>data.object;
|
var stackLayout = <StackLayout>data.object;
|
||||||
var nativeView = stackLayout._nativeView;
|
var nativeView = stackLayout._nativeView;
|
||||||
nativeView.setOrientation(data.newValue === enums.Orientation.vertical ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horzontal);
|
nativeView.setOrientation(data.newValue === enums.Orientation.vertical ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horizontal);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _layout: org.nativescript.widgets.StackLayout;
|
private _layout: org.nativescript.widgets.StackLayout;
|
||||||
|
@ -11,7 +11,7 @@ export class WrapLayout extends common.WrapLayout {
|
|||||||
static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void {
|
static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void {
|
||||||
var wrapLayout = <WrapLayout>data.object;
|
var wrapLayout = <WrapLayout>data.object;
|
||||||
var nativeView = wrapLayout._nativeView;
|
var nativeView = wrapLayout._nativeView;
|
||||||
nativeView.setOrientation(data.newValue === enums.Orientation.vertical ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horzontal);
|
nativeView.setOrientation(data.newValue === enums.Orientation.vertical ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horizontal);
|
||||||
}
|
}
|
||||||
|
|
||||||
static setNativeItemWidthProperty(data: dependencyObservable.PropertyChangeData): void {
|
static setNativeItemWidthProperty(data: dependencyObservable.PropertyChangeData): void {
|
||||||
|
Reference in New Issue
Block a user