File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
tns-core-modules/ui/core/view Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export class View extends ViewCommon {
159
159
traceWrite ( this + " :_setNativeViewFrame: " + JSON . stringify ( ios . getPositionFromFrame ( frame ) ) , traceCategories . Layout ) ;
160
160
}
161
161
this . _cachedFrame = frame ;
162
+ let adjustedFrame = null ;
162
163
if ( this . _hasTransfrom ) {
163
164
// Always set identity transform before setting frame;
164
165
const transform = nativeView . transform ;
@@ -167,11 +168,11 @@ export class View extends ViewCommon {
167
168
nativeView . transform = transform ;
168
169
} else {
169
170
nativeView . frame = frame ;
170
- }
171
-
172
- const adjustedFrame = this . applySafeAreaInsets ( frame ) ;
173
- if ( adjustedFrame ) {
174
- nativeView . frame = adjustedFrame ;
171
+ // apply safe area insets only if no transform is in place
172
+ adjustedFrame = this . applySafeAreaInsets ( frame ) ;
173
+ if ( adjustedFrame ) {
174
+ nativeView . frame = adjustedFrame ;
175
+ }
175
176
}
176
177
177
178
const boundsOrigin = nativeView . bounds . origin ;
You can’t perform that action at this time.
0 commit comments