compose-webview-multiplatform icon indicating copy to clipboard operation
compose-webview-multiplatform copied to clipboard

[Desktop] Webview is always on top of other components

Open JuBan1 opened this issue 1 year ago • 5 comments

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.

JuBan1 avatar Nov 08 '23 20:11 JuBan1

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!

KevinnZou avatar Nov 09 '23 01:11 KevinnZou

I guess my PR will fix this too

MatkovIvan avatar Nov 24 '23 20:11 MatkovIvan

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

alirezat775 avatar Mar 09 '24 19:03 alirezat775

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?

Kiryushin-Andrey avatar Aug 11 '24 20:08 Kiryushin-Andrey

@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.

MatkovIvan avatar Aug 12 '24 06:08 MatkovIvan