Fixed several tslint problems.

This commit is contained in:
Rossen Hristov
2015-11-05 16:03:05 +02:00
parent dec5d971f3
commit ea24a244c9
4 changed files with 7 additions and 3 deletions

View File

@ -1120,4 +1120,8 @@ export class View extends proxy.ProxyObject implements definition.View {
return this.typeName;
}
public _setNativeViewFrame(nativeView: any, frame: any) {
//
}
}

2
ui/core/view.d.ts vendored
View File

@ -502,7 +502,7 @@ declare module "ui/core/view" {
_goToVisualState(state: string);
_nativeView: any;
_isVisible: boolean;
_setNativeViewFrame(nativeView: UIView, frame: CGRect): void;
_setNativeViewFrame(nativeView: any, frame: any): void;
//@endprivate
}

View File

@ -232,7 +232,7 @@ export class View extends viewCommon.View {
//
}
public _setNativeViewFrame(nativeView: UIView, frame: CGRect) {
public _setNativeViewFrame(nativeView: any, frame: any) {
if (!CGRectEqualToRect(nativeView.frame, frame)) {
trace.write(this + ", Native setFrame: = " + NSStringFromCGRect(frame), trace.categories.Layout);
nativeView.frame = frame;

View File

@ -234,7 +234,7 @@ export class Frame extends frameCommon.Frame {
return (navigationBar && !this._ios.controller.navigationBarHidden) ? navigationBar.frame.size.height : 0;
}
public _setNativeViewFrame(nativeView: UIView, frame: CGRect) {
public _setNativeViewFrame(nativeView: any, frame: any) {
// HACK: The plugin https://github.com/hackiftekhar/IQKeyboardManager offsets our Frame's 'nativeView.frame.origin.y'
// to a negative value so the currently focused TextField/TextView is always on the screen while the soft keyboard is showing.
// Our Frame always wants to have an origin of {0, 0}, so if someone else has been playing with origin.x or origin.y do not bring it back to {0, 0}.