I do have a problem with Alignment.Bottom in Alert...
# compose
t
I do have a problem with Alignment.Bottom in AlertDialog:
Copy code
AlertDialog(
        onDismissRequest = { onAction(DismissDialog) },
        text = {
        Column {
            Row(verticalAlignment = Alignment.Bottom) {
                Text(text = description, Modifier.weight(2f))
                Image(
                    modifier = Modifier.weight(1f).padding(end = 4.dp),
                    painter = painterResource(id = R.drawable.ic_mango_shake),
                    contentDescription = "mango shake",
                    contentScale = ContentScale.Inside
                )
            }
        }
    },...
When i remove the verticalAlignment = Alignment.Bottom i get the expected result:
Btw. this problem exists only in an AlertDialog not in regular screen layouts.
s
The first one looks better imo
t
Yes that is what i want. But it is cut 😞
s
Maybe make your image smaller
t
The bottom alignment is than useless because it only works when the text is heigher than the image. And also i want the design to be smart. So it will adapt to different screen sizes.
Maybe i need to report a bug. But i am not sure. Maybe i am doing s.th. wrong.
s
I've had similar problems with
AlertDialog
too. I guess it's worth filing a bug
k
🤣🤣 the message on the dialog kills me with laughter.