chore: update tslint rules (#7391)

This commit is contained in:
Manol Donev
2019-06-26 15:13:48 +03:00
committed by GitHub
parent 92370279d8
commit 4f39fb728b
399 changed files with 3101 additions and 2210 deletions

View File

@@ -1,4 +1,4 @@
import { AbsoluteLayoutBase, View, leftProperty, topProperty, Length } from "./absolute-layout-common";
import { AbsoluteLayoutBase, View, leftProperty, topProperty, Length } from "./absolute-layout-common";
export * from "./absolute-layout-common";
@@ -10,11 +10,11 @@ function makeNativeSetter<T>(setter: (this: View, lp: org.nativescript.widgets.C
setter.call(this, lp, value);
nativeView.setLayoutParams(lp);
}
}
};
}
View.prototype[topProperty.setNative] = makeNativeSetter<number>(function(this: View, lp, value) { lp.top = Length.toDevicePixels(value, 0) });
View.prototype[leftProperty.setNative] = makeNativeSetter<number>(function(this: View, lp, value) { lp.left = Length.toDevicePixels(value, 0) });
View.prototype[topProperty.setNative] = makeNativeSetter<number>(function(this: View, lp, value) { lp.top = Length.toDevicePixels(value, 0); });
View.prototype[leftProperty.setNative] = makeNativeSetter<number>(function(this: View, lp, value) { lp.left = Length.toDevicePixels(value, 0); });
export class AbsoluteLayout extends AbsoluteLayoutBase {
nativeViewProtected: org.nativescript.widgets.AbsoluteLayout;