window size adaptive content, but this code not wo...
# compose-desktop
u
window size adaptive content, but this code not work for me.
Copy code
val positionScheduled by remember { mutableStateOf(WindowPosition(Alignment.BottomStart)) }
        val memoryWindowStatus = rememberWindowState(position = positionScheduled, width = Dp.Unspecified, height = Dp.Unspecified)

        if (list.size > index) {
            Window(
                { memoryWindowIsShow = false },
                memoryWindowStatus,
                memoryWindowIsShow,
                Config.appName,
                icon,
                undecorated = true,
                transparent = false,
                resizable = true,
                focusable = false,
                alwaysOnTop = true
            ) {
                WindowDraggableArea(Modifier.background(Color.Red)) {
                    Text(
                        list[index].content,
                        fontSize = 32.sp,
                        color = Color.White,
                        modifier = Modifier.defaultMinSize(minWidth = 200.dp)
                            .background(Color.Gray)
                            .padding(8.dp),
                        overflow = TextOverflow.Visible
                    )
                }
            }
        }