Merge pull request #832 from NativeScript/layout-invalidates-transform

Transformations such as scale, translate, rotate won't be incorrectly affected by the layout
This commit is contained in:
Panayot Cankov
2015-09-28 16:04:57 +03:00

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