Skip to content

Commit a51d2ec

Browse files
committed
only update insets if the IAM is fullscreen
1 parent a0e0bf1 commit a51d2ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OSInAppMessageViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,9 @@ - (void)jsEventOccurredWithBody:(NSData *)body {
731731
case OSInAppMessageBridgeEventTypePageResize: {
732732
// Unused resize event for IAM during actions like orientation changes and displaying an IAM
733733
// self.message.height = event.resize.height;
734-
[self.messageView updateSafeAreaInsets];
734+
if (self.isFullscreen) {
735+
[self.messageView updateSafeAreaInsets];
736+
}
735737
break;
736738
}
737739
case OSInAppMessageBridgeEventTypeActionTaken: {

0 commit comments

Comments
 (0)