JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.24k stars 1.18k forks source link

Window resizing causes artifacts on Windows #164

Closed kobutri closed 1 month ago

kobutri commented 3 years ago

I know from discussions around other frameworks that properly handling window resizing is a notoriously hard issue, but I hope it is something that will get addressed fairly soon.

voltangle commented 3 years ago

And not only on Windows. I think it is an issue on every platform. For example, the BottomSheet is not disappearing when you hide it: it is just outside of the window. And when you resize it(the window), you can see the bottom sheet trying to hide :D

hakanai commented 3 years ago

The example Code Viewer application being resized, for example:

image

Rsedaikin commented 3 years ago

@hakanai could you please give your PC specifications? I cannot reproduce this bug. On Windows, when you resize a window, you can usually get black areas on the right and bottom of the window.

hakanai commented 3 years ago

OS: Windows 10 Home 10.0.19041 Build 19041 Graphics card: NVIDIA GeForce GTX 1080 Ti (ROG-STRIX-GTX1080TI-O11G-GAMING) Graphics driver: 27.21.14.5671

And although I get this issue, I don't get it every time I launch the demo app. Sometimes it does pad the space with black. The most reliable way to get it to happen so far has been to click around on the tree on the left until the demo app hangs, and then resize the window.

FranckRJ commented 3 years ago

On Windows, when you resize a window, you can usually get black areas on the right and bottom of the window.

@Rsedaikin Will this be fixed ?

InsaneDoggo commented 3 years ago

Discussed same here(ru) https://t.me/compose_mpp/1437 I think realtime resizing should be exposed as optional parameter rather than forced for all apps. Intellij idea(swing) for example have same behavior, while chrome hasn't.

olonho commented 3 years ago

Could you please retry with latest versions of Compose?

jimgoog commented 3 years ago

The latest build number can be found here: https://github.com/JetBrains/compose-jb/tags

When responding with the test results, please mention which version you used, for the sake of posterity

kobutri commented 3 years ago

@jimgoog I just tested 0.4.0-build176 and the problem persists.

okushnikov commented 3 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.