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

[Dialog] - BasicAlertDialog expand/collapse animation with TextField single line #4752

Closed
cmpeguerog opened this issue May 2, 2024 · 1 comment
Labels
bug Something isn't working submitted

Comments

@cmpeguerog
Copy link

cmpeguerog commented May 2, 2024

Describe the bug
When user types a long string on a single line TextField inside a BasicAlertDialog some times the dialog layout expand/collapse horizontally displaying a weird animation.

Affected platforms

  • iOS

Versions

  • Kotlin version*: 1.9.23
  • Compose Multiplatform version*: 1.6.10-beta03
  • OS version(s)* (required for Desktop and iOS issues): Ventura 13.6.6
  • OS architecture (x86 or arm64): x86
  • Device (model or simulator for iOS issues): Simulator iPhone 15 Pro running iOS 17.2, iPhone 12 Pro Max running 17.4.1

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Add single line TextField inside BasicAlertDialog
  2. Type a relatively large string.

Expected behavior
Alert dialog width should be the same independently of the string size.

Screenshots

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-02.at.15.10.32.mp4
@cmpeguerog cmpeguerog added bug Something isn't working submitted labels May 2, 2024
@cmpeguerog
Copy link
Author

cmpeguerog commented May 2, 2024

This workaround should fix the weird horizontal resizing Workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working submitted
Projects
None yet
Development

No branches or pull requests

1 participant