Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JuBan1 opened this issue Nov 8, 2023 · 5 comments
Open

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

JuBan1 opened this issue Nov 8, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request wait external fix External library fix is needed

Comments

@JuBan1
Copy link

JuBan1 commented Nov 8, 2023

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
Copy link
Owner

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 KevinnZou self-assigned this Nov 9, 2023
@KevinnZou KevinnZou added wait external fix External library fix is needed enhancement New feature or request labels Nov 9, 2023
@MatkovIvan
Copy link

I guess my PR will fix this too

@alirezat775
Copy link
Contributor

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wait external fix External library fix is needed
Projects
None yet
Development

No branches or pull requests

5 participants