Skip to content

HTML <select> element wrongly positioned in windowed mode on Linux #372

Open
@cztomczak

Description

@cztomczak

Reproducible with hello_world.py, wxpython.py and cefclient examples running CEF Python v58.0 on Linux (Ubuntu 14.04). Also reported by user running Windows 7, but CEF version not provided, probably v57. It seems that it works fine on Mac.

Steps to reproduce:

  1. Run example to load Google.com
  2. Type "mozilla select element" and click first result
  3. Scroll down to the "Examples" section and click on the <select> element
  4. Options appear outside the window in the top left corner of the screen

Also reproducible with latest CEF cef_binary_3.3071.1636.g2718da5_linux64_client (cefsimple).

Reported bug upstream: https://bitbucket.org/chromiumembedded/cef/issues/2195/html-element-wrongly-positioned-in

For now a temporary solution would be to replace elements with javascript equivalent, for example try google "jquery select replacement". You can inject custom js code that will do this task in LoadHandler.OnLoadStart (attach it to DOMDocumentLoaded event) or LoadHandler.OnLoadEnd (less reliable). Example of using client handlers is available in Tutorial.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions