Fixed
Status Update
Comments
pa...@google.com <pa...@google.com> #2
Louis, Mihai does anyone have some idea why does this happen? Do we need to pass some special constraint to AlertDialog's content?
pa...@google.com <pa...@google.com> #3
Can you please post here a repro?
po...@google.com <po...@google.com>
pa...@google.com <pa...@google.com> #4
Discussed with Mihai. The issue is that Column that is used in the Dialog can't be configured to reserve space for buttons. Over to Mihai to look into this and see what we can do with Column to support it.
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit a153977dfc2a43aadb38a1e5a1a151336f8c2360
Author: Mihai Popa <popam@google.com>
Date: Thu Apr 22 18:34:55 2021
Row/Column wrap content if no weight+fill child
Relnote: "Row & Column children with weight(fill = false) are no longer making the parent fill the entire available main axis space."
Fixes: 186012444
Fixes: 184355105
Test: RowColumnTest + manual testing for AlertDialog
Change-Id: Ied94da682f4cf6ead5b91e06ba08904c1a349b9f
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/RowColumnTest.kt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/RowColumnImpl.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/AlertDialog.kt
https://android-review.googlesource.com/1684872
Branch: androidx-main
commit a153977dfc2a43aadb38a1e5a1a151336f8c2360
Author: Mihai Popa <popam@google.com>
Date: Thu Apr 22 18:34:55 2021
Row/Column wrap content if no weight+fill child
Relnote: "Row & Column children with weight(fill = false) are no longer making the parent fill the entire available main axis space."
Fixes: 186012444
Fixes: 184355105
Test: RowColumnTest + manual testing for AlertDialog
Change-Id: Ied94da682f4cf6ead5b91e06ba08904c1a349b9f
M compose/foundation/foundation-layout/src/androidAndroidTest/kotlin/androidx/compose/foundation/layout/RowColumnTest.kt
M compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/RowColumnImpl.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/AlertDialog.kt
Description
I have an AlertDialog containing a LazyVerticalGrid, a confirmButton, and a dismissButton. When the grid gets tall enough to that it needs to scroll, the buttons are left without enough space to display and they'red clipped at the bottom of the dialog. I'm not sure how clear that description is, so I attached a screenshot.