Fixed enum value name

This commit is contained in:
Hristo Hristov
2016-01-11 12:37:17 +02:00
parent ef11c7b7cf
commit 18f074067a
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@
} }
export enum Orientation { export enum Orientation {
horzontal, horizontal,
vertical vertical
} }

View File

@ -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;

View File

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