Skip to content

Fix Popup and Dialog platform width during rotation animation - #3541

Closed
Andrei Salavei (ASalavei) wants to merge 3 commits into
jb-mainfrom
andrei.salavei/fix-popups-platform-width-for-ios
Closed

Andrei Salavei (ASalavei) wants to merge 3 commits into
jb-mainfrom
andrei.salavei/fix-popups-platform-width-for-ios

Conversation

@ASalavei

Copy link
Copy Markdown

During screen rotation animation iOS may provide in-between values of the scene size, which will be converted to non-expected platform dialog.
Extract expect rememberPreferredDialogLayoutWidth function that provides correct Popup and Dialog content constraints.

Fixes https://youtrack.jetbrains.com/issue/CMP-10832/Popup-resizes-incorrectly-when-rotating-device

Release Notes

Fixes - iOS

  • Fix Popup and Dialog size during rotation animation

@MatkovIvan Ivan Matkov (MatkovIvan) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that it's a Popup/Dialog problem. All such user layouts inside the app will behave the same.

Also, expect/actual is a wrong mechanism (for the library) for customizing layout - it does not depend on compile target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants