Skip to content

Commit

Permalink
fix(ios): view in a tab window goes under tabs in a tabgroup on iPad (#…
Browse files Browse the repository at this point in the history
…11797)

Fixes TIMOB-27969
  • Loading branch information
vijaysingh-axway committed Jul 1, 2020
1 parent e06f9b5 commit e9330a9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions iphone/TitaniumKit/TitaniumKit/Sources/Modules/TiUIWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -1131,21 +1131,21 @@ - (void)processForSafeArea
}

TiViewProxy *safeAreaProxy = [self safeAreaViewProxy];
CGFloat oldTop = [[safeAreaProxy valueForKey:@"top"] floatValue];
CGFloat oldLeft = [[safeAreaProxy valueForKey:@"left"] floatValue];
CGFloat oldRight = [[safeAreaProxy valueForKey:@"right"] floatValue];
CGFloat oldBottom = [[safeAreaProxy valueForKey:@"bottom"] floatValue];
id oldTop = [safeAreaProxy valueForKey:@"top"];
id oldLeft = [safeAreaProxy valueForKey:@"left"];
id oldRight = [safeAreaProxy valueForKey:@"right"];
id oldBottom = [safeAreaProxy valueForKey:@"bottom"];

if (oldTop != edgeInsets.top) {
if (!oldTop || [oldTop floatValue] != edgeInsets.top) {
[safeAreaProxy setTop:NUMFLOAT(edgeInsets.top)];
}
if (oldBottom != edgeInsets.bottom) {
if (!oldBottom || [oldBottom floatValue] != edgeInsets.bottom) {
[safeAreaProxy setBottom:NUMFLOAT(edgeInsets.bottom)];
}
if (oldLeft != edgeInsets.left) {
if (!oldLeft || [oldLeft floatValue] != edgeInsets.left) {
[safeAreaProxy setLeft:NUMFLOAT(edgeInsets.left)];
}
if (oldRight != edgeInsets.right) {
if (!oldRight || [oldRight floatValue] != edgeInsets.right) {
[safeAreaProxy setRight:NUMFLOAT(edgeInsets.right)];
}
}
Expand Down

0 comments on commit e9330a9

Please sign in to comment.