JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
14.85k stars 1.08k forks source link

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

Closed cmpeguerog closed 2 weeks ago

cmpeguerog commented 2 weeks ago

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

Versions

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

https://github.com/JetBrains/compose-multiplatform/assets/22971874/17089c10-0337-4504-a7a0-99a481ebc56a

cmpeguerog commented 2 weeks ago

This workaround should fix the weird horizontal resizing Workaround