diff --git a/ui/core/view-common.ts b/ui/core/view-common.ts index 339bb79b7..33c039b31 100644 --- a/ui/core/view-common.ts +++ b/ui/core/view-common.ts @@ -1120,4 +1120,8 @@ export class View extends proxy.ProxyObject implements definition.View { return this.typeName; } + + public _setNativeViewFrame(nativeView: any, frame: any) { + // + } } diff --git a/ui/core/view.d.ts b/ui/core/view.d.ts index d9a058331..cf662c710 100644 --- a/ui/core/view.d.ts +++ b/ui/core/view.d.ts @@ -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 } diff --git a/ui/core/view.ios.ts b/ui/core/view.ios.ts index ddd8af3e6..1927f8532 100644 --- a/ui/core/view.ios.ts +++ b/ui/core/view.ios.ts @@ -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; diff --git a/ui/frame/frame.ios.ts b/ui/frame/frame.ios.ts index 7d1a51980..9472f10dc 100644 --- a/ui/frame/frame.ios.ts +++ b/ui/frame/frame.ios.ts @@ -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}.