Niklas Ruzycki
02/03/2021, 4:16 PMBox(modifier = Modifier.fillMaxWidth().onGloballyPositioned { layoutCoordinates ->
val manager = AppWindowAmbient.current //AppManager.focusedWindow
windowSize = IntSize(
layoutCoordinates.size.width,
layoutCoordinates.size.height
)
manager?.setSize(windowSize.width, windowSize.height)
}) { ... }
Thank you!Timo Drick
02/03/2021, 5:04 PMIgor Demin
02/03/2021, 6:00 PMMaybe you could start with a Window with size 0,0Probably macOs will not call composition at all with this size, so we should use size (1,1) 😄 . Setting size of the window by its content is a known problem. We will figure something out in the future, how we can support this. Probably we will provide a special window parameter and will start composition before starting the window.
Niklas Ruzycki
02/03/2021, 10:26 PM