mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fixed several tslint problems.
This commit is contained in:
@ -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
2
ui/core/view.d.ts
vendored
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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}.
|
||||
|
Reference in New Issue
Block a user