From 11f01e26c1a62c0120cfb0b290f98303138e0d2a Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Mon, 28 Sep 2015 12:24:18 +0300 Subject: [PATCH] Set bound along the frame property for iOS layouts. Setting bounds will reapply the transform. --- ui/core/view.ios.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/core/view.ios.ts b/ui/core/view.ios.ts index 0dad170ad..f7dd3e2d8 100644 --- a/ui/core/view.ios.ts +++ b/ui/core/view.ios.ts @@ -251,6 +251,8 @@ export class View extends viewCommon.View { if (!CGRectEqualToRect(nativeView.frame, frame)) { trace.write(this + ", Native setFrame: = " + NSStringFromCGRect(frame), trace.categories.Layout); nativeView.frame = frame; + var boundsOrigin = nativeView.bounds.origin; + nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, frame.size.width, frame.size.height); } }