Ryan Mitchener
11/22/2021, 7:19 PMMitchell Syer
11/22/2021, 7:33 PMfun main() = application {
Window(onCloseRequest = ::exitApplication, title = "AppName") {
LaunchedEffect(Unit) {
window.minimumSize = // minimum size dimension
}
}
}
Ryan Mitchener
11/22/2021, 7:36 PMChris Sinco [G]
11/22/2021, 11:28 PMRyan Mitchener
11/23/2021, 2:48 PMLaunchedEffect
though you will get some resize stutter on launch, So I do this instead until there is a better workaround:
fun main() = application {
val minWindowSize = remember(density) { Dimension((1280 * density).toInt(), (768 * density).toInt()) }
Window {
if (window.minimumSize != minWindowSize) mainWindow.minimumSize = minWindowSize
}
}