Set bound along the frame property for iOS layouts. Setting bounds will reapply the transform.

This commit is contained in:
Panayot Cankov
2015-09-28 12:24:18 +03:00
parent ed08336612
commit 11f01e26c1

View File

@@ -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);
}
}