KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
426 stars 54 forks source link

[Desktop] Webview is always on top of other components #41

Open JuBan1 opened 10 months ago

JuBan1 commented 10 months ago

It's not possible to render composables on top of the WebView on desktop (using JCEF or KCEF. Android/iOS are unaffected). Any composable, even popups or context menus, will be clipped by it.

This isn't a bug with this library but with Compose's Swing interop.

This issue is to keep track of this bug, and to help others who come looking in search of answers.

KevinnZou commented 10 months ago

Thanks for your suggestion! I also noticed that problem and found that it is the problem with the Swing interop. I will also keep watching on this issue. Thanks!

MatkovIvan commented 9 months ago

I guess my PR will fix this too

alirezat775 commented 6 months ago

In this PR, I updated the compose version to 1.6.0 I guess we can close this issue when the PR merges

Kiryushin-Andrey commented 3 weeks ago

I see that compose version in the library is currently 1.6.1. In my project I'm using CMP version 1.6.1 and compose-webview-multiplatform version 1.9.20 (the latest one), and the issue is still there. @MatkovIvan @KevinnZou is it expected?

MatkovIvan commented 3 weeks ago

@Kiryushin-Andrey Yes, kinda expected. Rendering interop views above Compose is still default and documented behavior. However, Compose Multiplatform 1.6.0 includes my change (from the comment above) that adds a new experimental mode that allows rendering Compose above platform views. It has some limitations and should be enabled explicitly. See docs or PR description for details.