combobox drop down menu is displaced (cef 3.1750.1619)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

combobox drop down menu is displaced (cef 3.1750.1619)

Postby theGoat » Mon Feb 17, 2014 3:50 pm

Just upgraded to cef 3.1750.1619 and I'm seeing an issue with combobox elements (html select tag: http://www.w3schools.com/TAGS/tag_select.asp ).

When you click the combobox element it displays a drop down menu of choices. But the menu always seems to appear at the offset position of where the CEF window was first positioned. If you move the CEF window and click the combobox element, the menu no longer lines up with the html element.

This is reproducible with cef 3.1750.1619 cefclient, in visual studio 2012 with, CEF_ENABLE_SANDBOX=0.

See the attached picture for an example of the problem.
Attachments
cef 3.1750 combobox error.png
cef 3.1750 combobox error.png (14.23 KiB) Viewed 10351 times
theGoat
Techie
 
Posts: 20
Joined: Tue Dec 10, 2013 8:54 am

Re: combobox drop down menu is displaced (cef 3.1750.1619)

Postby magreenblatt » Mon Feb 17, 2014 4:44 pm

This is likely a bug related to Aura. Please add an issue to the issue tracker.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: combobox drop down menu is displaced (cef 3.1750.1619)

Postby iegor » Tue Aug 26, 2014 1:12 pm

After investigating that problem, it looks like we somehow have to call RenderWidgetHostImpl::SendScreenRects() after moving window. Renderer send message ViewHostMsg_ShowWidget for showing HTMLSelect element, with wrong coordinates because it doesn't know that window has been moved.
I've temporarily solved this problem by creating method in CefBrowserHost in which I call SendScreenRects(), and then call this method from WM_MOVE handler in main window.
iegor
Techie
 
Posts: 11
Joined: Tue Aug 26, 2014 12:42 pm

Re: combobox drop down menu is displaced (cef 3.1750.1619)

Postby magreenblatt » Wed Aug 27, 2014 3:44 pm

iegor wrote:After investigating that problem, it looks like we somehow have to call RenderWidgetHostImpl::SendScreenRects() after moving window. Renderer send message ViewHostMsg_ShowWidget for showing HTMLSelect element, with wrong coordinates because it doesn't know that window has been moved.
I've temporarily solved this problem by creating method in CefBrowserHost in which I call SendScreenRects(), and then call this method from WM_MOVE handler in main window.

The related issue is https://code.google.com/p/chromiumembed ... il?id=1208. Please add your comments there.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: combobox drop down menu is displaced (cef 3.1750.1619)

Postby tashimaya » Tue Oct 14, 2014 5:10 am

I am re-posting this question

https://groups.google.com/forum/#!topic/cefglue/7pT--N82b3Y

here because the CefGlue forum is a bit quiet at the moment. I am hoping somebody can give me some help with this. Has anybody managed to fix the drop down menu issue in CefGlue? Any help would be appreciated.

Many thanks
tashimaya
Techie
 
Posts: 36
Joined: Fri Oct 10, 2014 7:18 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 64 guests