compose-multiplatform
compose-multiplatform copied to clipboard
Problem in Window with size=DpSize.Unspecified on undecorated windows
as I saw in WindowState::size
if height or width is set to Dp.Unspecified
window should size itself equal to its content (width or height or both)
but this is just work on decorated
val state = rememberWindowState(
size = DpSize.Unspecified,
)
Window(
state = state,
undecorated = true,
onCloseRequest = onCloseRequest
) {
Text("text")
}
in that above code .window ,instead of size itself as its content size it will size itself as entire screen size!
is this a bug? if it is not. what should we do to handle this?
+1
Did you manage to solve this? I'm also trying to make window behave like wrap content, but i'm having trouble doing so
unfortunately no! still have this problem
Related?: https://github.com/JetBrains/compose-jb/issues/986
This appears to be a duplicate of https://github.com/JetBrains/compose-jb/issues/2676