-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Dialog] - BasicAlertDialog weird sqeeze animation when showing soft keybaord #4751
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
Comments
It's a known issue and there was a try to migrate this - JetBrains/compose-multiplatform-core#1099 The problem is in low-level sync between native view layout and metal layer rendering. The current workaround is to disable platform layers via ComposeUIViewController(
configure = { platformLayers = false }
) |
Worked fine, but as a side effect now the user should handle the keyboad when showing dialogs. |
@cmpeguerog My problem is something similar to this, but as you can see in the image below, the BasicAlertDialog is below the keyboard. I have already added the ComposeUIViewController
In Android How did you get the dialog to resize correctly? Another strange thing is that the density of text and component sizes on iOS seems to get bigger. |
@SirFilbido I just added the |
@cmpeguerog Does your BasicAlertDialog have any settings in the Modifier? |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Describe the bug
Dialog layout sqeeze vertically when soft keyboard is being show.
Affected platforms
Versions
To Reproduce
Expected behavior
Dialog should slide up without squeeze animation.
Screenshots
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-02.at.14.29.43.mp4
The text was updated successfully, but these errors were encountered: