https://kotlinlang.org logo
#compose
Title
# compose
g

gpaligot

01/28/2022, 4:02 PM
Hi all! I'm would like to create an AlertDialog with a scrollable content but I have a strange behavior with a padding in top of the dialog and the content that goes under my buttons in bottom of the dialog. There is already an issue created on the bugtracker somewhere about that?
c

Casey Brooks

01/28/2022, 4:04 PM
I've seen the same bug too (I'm not sure if it's being tracked or not), but a normal
Dialog
works fine with scrolling content
g

gpaligot

01/28/2022, 4:05 PM
The code to reproduce is really easy:
Copy code
AlertDialog(
        title = {
            Title(
                iconRes = iconRes,
                title = title
            )
        },
        text = {
            Column(modifier = Modifier.verticalScroll(rememberScrollState())) {
                Text(
                    text = message!!
                )
            }
        },
        onDismissRequest = onDismissRequest,
        buttons = {
            // Buttons here
        }
    )
@Casey Brooks Yes, we'll use
Dialog
for now but the
AlertDialog
should be fixed 🙂
a

Adam Powell

01/28/2022, 4:15 PM
😂 alright, that's a pretty great bug. Is it filed?
g

gpaligot

01/29/2022, 5:53 AM
Not yet, I asked if there are already a ticket for that but if not, I'll create it soon.
m

matvei

01/31/2022, 12:32 PM
I didn't manage to find one, please file!
g

gpaligot

01/31/2022, 3:26 PM
14 Views