Closed mahozad closed 4 days ago
Can't reproduce it on macOS.
@mahozad was macOS
wrongly added to the affected platforms list, or you indeed have this behavior on macOS
machine?
@MatkovIvan I don't think I touched windows
related rendering since 1.5.10. Can you bisect the regression point on a Windows machine?
I'm also having problems with window resizing on windows. I'm not sure if this is the same problem, but it might be? If it's different I can make another issue.
The hardcoded 200 width moves around as I resize the window, on windows, and then snaps back to 200 when I stop moving it. On a Mac, the 200 width remains in place as the rest of the window expands and shrinks.
This is on 1.6.2
Window(
onCloseRequest = ::exitApplication,
state = WindowState(width = 800.dp, height = 1000.dp),
) {
Box(modifier = Modifier.fillMaxSize().background(Color.Red)) {
Box(modifier = Modifier.width(200.dp).fillMaxHeight().background(Color.Blue))
}
}
Please forgive this horrible video quality...
I should say that CMP 1.6.0 also did not have this problem.
Can't reproduce it on macOS...
@elijah-semyonov
Sorry. I only tested Windows. The macOS and Linux were remnants of issue template.
Reproduced in minimal skiko app without Compose. Happens only for DirectX. OpenGL for Windows works ~fine~ better (shows black bars instead of stretching sometimes)
Explanation here - https://github.com/JetBrains/compose-multiplatform/issues/4521#issuecomment-2014834922
Closing as duplicate of ~#4521~ #2925
Describe the bug When changing window width on desktop, the content of the window repeatedly shrinks or expands while the resizing is in progress.
This problem did not exist in compose multiplatform 1.5.10.
Affected platforms
Versions
To Reproduce Run the below app and resize the window with mouse.
Additional context This also happens even when window is not resizable. when programmatically changing window size, the content breaks for a moment:
https://github.com/JetBrains/compose-multiplatform/assets/29678011/e7f90b27-bcf6-4996-a5dc-e3ff33f7913b