Photoxor
02/01/2021, 2:41 AMPopup
has changed in alpha11. Width is now limited to parent width. Is this intended?matvei
02/01/2021, 11:12 AMLouis Pullen-Freilich [G]
02/01/2021, 1:09 PMPiotr Prus
02/03/2021, 9:48 PM@Composable
fun DropdownTest() {
val (showMenu, setVisibility) = remember { mutableStateOf(true) }
if (showMenu) {
Popup(
alignment = Alignment.TopCenter,
isFocusable = true,
onDismissRequest = { setVisibility(false) },
) {
Column(
modifier = Modifier
.fillMaxWidth()
.background(Color.Gray)
) {
Text(text = "This should take the whole width, but it takes around 75-80%")
Text(text = "Is that intended?")
}
}
}
}
Calling above code in setContent
results in following:Louis Pullen-Freilich [G]
02/03/2021, 10:23 PMPiotr Prus
02/04/2021, 5:46 AM