is it normal for `DropdownMenu` to jank when openi...
# compose-desktop
k
is it normal for
DropdownMenu
to jank when opening for the first time even with the JIT fully disabled via
-Djava.compiler=NONE -Xint -XX:-UseCompiler XX:+UnlockDiagnosticVMOptions -XX:+PrintCompilation
for https://foso.github.io/Jetpack-Compose-Playground/material/dropdownmenu/ im using
Copy code
kotlin.code.style=official
kotlin.version=1.7.20
compose.version=1.2.2
https://bpa.st/IDPCU
*watches

https://www.youtube.com/watch?v=Ry-3xlElUe4

*
removing the text doesnt seem to improve render time of the drop down
this seems to lag with just this
Copy code
@Composable
fun DropdownDemo() {
    var expanded by remember { mutableStateOf(false) }
    val items = listOf("A", "B", "C", "D", "E", "F")
    val disabledValue = "B"
    var selectedIndex by remember { mutableStateOf(0) }
    Box(modifier = Modifier.fillMaxSize().wrapContentSize(Alignment.TopStart)) {
        Text(items[selectedIndex],modifier = Modifier.fillMaxWidth().clickable(onClick = { expanded = true }).background(Color.Gray))
        DropdownMenu(
            expanded = expanded,
            onDismissRequest = { expanded = false },
            modifier = Modifier.fillMaxWidth().background(
                Color.Red)
        ) {
        }
    }
}
upon the first "expanding" of the menu
i wonder if its the button click animation itself that appears as jank tho there doesnt seem to be an animation for the Text element when clicked