chromiumembedded/java-cef

Linux, drop down menus don't work correctly

Tamas-github opened this issue · 1 comments

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

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

3Dacceleration