chromiumembedded / java-cef

Java Chromium Embedded Framework (JCEF). A simple framework for embedding Chromium-based browsers in other applications using the Java programming language.
https://bitbucket.org/chromiumembedded/java-cef
Other
605 stars 135 forks source link

Linux, drop down menus don't work correctly #441

Open Tamas-github opened 1 year ago

Tamas-github commented 1 year ago

Hello, I need a help with my project.

I am rendering a simple web page using jcef but selecboxes are not working. The content of the menu always pops up in the upper left corner instead of under the select box.

It happens only with osr enabled.

It is easy to reproduce even with the default test from jcefbuild release. Just run MainFrame.java located under jcef/bin/tests/simple. Before running it please set osr = true and direct the url to local test html file.

I have tried different things, like disabling gpu so on CefApp.getInstance(new String[]{"--disable-gpu", "--disable-software-rasterizer", "--disable-gpu-compositing"},settings)

Thank you in advance for any help you can provide. Tamas


jcef-osr-selecbox-menu-wrong-position jcef-selectbox-menu-position.zip

Printscreen with problem + example file attached.

Java Zulu 19, latest Kubuntu + Oracle vm virtualbox

Tested on latest Kubuntu + jcef build from here https://kubuntu.org/ https://github.com/jcefmaven/jcefbuild/releases

Tamas-github commented 1 year ago

I found the solution for that. I have to enable 3D acceleration on virtual machine settings. Then it works properly :)

3Dacceleration