Assigned
Status Update
Comments
em...@well.co <em...@well.co> #2
Hey OP, have you tried Embedded Layout Inspector? you can try it in Iguana Canary. Please give it a try and let us know if you still have this issue.
Description
composeBom = "2024.04.01"
Jetpack Compose component(s) used:
Alert Dialog
Android Studio Build:
Android Studio Ladybug | 2024.2.1 Patch 2
Kotlin version:
2.0.0
Steps to Reproduce or Code Sample to Reproduce:
Set font size and display size to smaller values, rotate your device to landscape mode and open up the dialog.
The dialog's width is really small and looks weird.
AlertDialog(
title = { Text("Leave the app?", modifier = Modifier.semantics { heading() }) },
text = {
Column(modifier = Modifier.verticalScroll(rememberScrollState())) {
Text("$message $message")
}
},
onDismissRequest = { dismissAction.invoke() },
confirmButton = {
TextButton(onClick = {
confirmAction?.invoke()
dismissAction.invoke()
}) {
Text(text = positiveButtonText)
}
},
dismissButton = {
TextButton(
onClick = dismissAction
) {
Text(text = negativeButtonText)
}
}
)