Is there a way to set a maximum window size in com...
# compose-desktop
r
Is there a way to set a maximum window size in compose desktop? The following approach works for the minimum size, but doesn't work for the maximum:
Copy code
Window(onCloseRequest = ::exitApplication) {
        LaunchedEffect(Unit) {
            window.minimumSize = Dimension(600, 600) // Works
            window.maximumSize = Dimension(800, 800) // Doesn't work
        }
        Box(modifier = Modifier.fillMaxSize().background(Color.Red))
    }
(this is on Windows 11)