Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with screen size #1093

Conversation

dima-avdeev-jb
Copy link

@dima-avdeev-jb dima-avdeev-jb commented Feb 10, 2024

Proposed Changes

Now size and point in boundsInWindow calculates separatelly.

Previously:

Screen.Recording.2024-02-11.at.02.52.10.mp4

As you can see Compose have smaller size while on background. And that's why previously it's window bounds was smaller, than Compose opens fully.

In this PR:

Screen.Recording.2024-02-11.at.22.36.31.mov

Testing

in demo Demo App navigate to screen Native modal with navigation, press present popup, and swipe application to background. Then open application again and close native popup by draggin from to to bottom. Compose size should be correct.

Issues Fixed

Fixes: https://youtrack.jetbrains.com/issue/COMPOSE-902/iOS-scene-size-after-sending-the-app-to-background-or-changing-orientation-with-open-modal

@dima-avdeev-jb dima-avdeev-jb changed the title mainComposeScene flag fix issue with screen size Feb 12, 2024
@dima-avdeev-jb dima-avdeev-jb merged commit 0ab187d into jb-main Feb 12, 2024
6 checks passed
@dima-avdeev-jb dima-avdeev-jb deleted the dima.avdeev/ios-fix-scene-size-after-present-native-view-controller branch February 12, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants