diff --git a/org.nativescript.widgets.d.ts b/org.nativescript.widgets.d.ts index 6dfbc4998..8075b3290 100644 --- a/org.nativescript.widgets.d.ts +++ b/org.nativescript.widgets.d.ts @@ -62,7 +62,7 @@ } export enum Orientation { - horzontal, + horizontal, vertical } diff --git a/ui/layouts/stack-layout/stack-layout.android.ts b/ui/layouts/stack-layout/stack-layout.android.ts index b3f9bed5e..89aca2184 100644 --- a/ui/layouts/stack-layout/stack-layout.android.ts +++ b/ui/layouts/stack-layout/stack-layout.android.ts @@ -10,7 +10,7 @@ export class StackLayout extends common.StackLayout { static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void { var stackLayout = data.object; 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; diff --git a/ui/layouts/wrap-layout/wrap-layout.android.ts b/ui/layouts/wrap-layout/wrap-layout.android.ts index 4f3ebab05..f2ab51b67 100644 --- a/ui/layouts/wrap-layout/wrap-layout.android.ts +++ b/ui/layouts/wrap-layout/wrap-layout.android.ts @@ -11,7 +11,7 @@ export class WrapLayout extends common.WrapLayout { static setNativeOrientationProperty(data: dependencyObservable.PropertyChangeData): void { var wrapLayout = data.object; 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 {