Mouse context menu is misplaced and non-standard UI in cefcl

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.

Mouse context menu is misplaced and non-standard UI in cefcl

Postby Czarek » Tue Nov 25, 2014 12:41 pm

I'm using CEF 3.2171.1902 and mouse context menu is misplaced. Top-left corner of menu should be placed in the click spot. Attaching screenshot 1.

I've also noticed an issue in cefclient. Mouse context menu UI is not the standard one used by OS. Attaching screenshot 2. Mouse context menu in all applications is the same as on screenshot 1. It is cefclient that is using a strange menu.

Running Windows 7 64bit with High DPI settings (Larger 150%).
Attachments
1-menu-misplaced.png
1-menu-misplaced.png (16.92 KiB) Viewed 9263 times
2-non-standard-menu.png
2-non-standard-menu.png (24.71 KiB) Viewed 9264 times
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Mouse context menu is misplaced and non-standard UI in c

Postby magreenblatt » Tue Nov 25, 2014 12:55 pm

Czarek wrote:Mouse context menu UI is not the standard one used by OS

What do you mean by this? What should the menu UI look like?
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Mouse context menu is misplaced and non-standard UI in c

Postby magreenblatt » Tue Nov 25, 2014 12:59 pm

Czarek wrote:I'm using CEF 3.2171.1902 and mouse context menu is misplaced. Top-left corner of menu should be placed in the click spot.

Already filed as https://code.google.com/p/chromiumembed ... il?id=1445.
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Mouse context menu is misplaced and non-standard UI in c

Postby Czarek » Tue Nov 25, 2014 1:19 pm

magreenblatt wrote:
Czarek wrote:Mouse context menu UI is not the standard one used by OS

What do you mean by this? What should the menu UI look like?

Menu style is different in screenshots 1 & 2. All other apps have menu that you can see on screenshot 1.

I should also note that in cefclient mouse context menu is placed correctly, on that same computer with High DPI.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Mouse context menu is misplaced and non-standard UI in c

Postby magreenblatt » Tue Nov 25, 2014 1:25 pm

Czarek wrote:
magreenblatt wrote:
Czarek wrote:Mouse context menu UI is not the standard one used by OS

What do you mean by this? What should the menu UI look like?

Menu style is different in screenshots 1 & 2. All other apps have menu that you can see on screenshot 1.

What apps are you referring to? The menu in screenshot 2 is the standard cefclient menu built in OnBeforeContextMenu. I have never seen the menu from screenshot 1.

Czarek wrote:I should also note that in cefclient mouse context menu is placed correctly, on that same computer with High DPI.

Did you check that "Disable display scaling on high DPI settings" option under cefclient preferences? That's necessary for the menu to be incorrectly positioned on my machine (Windows 8.1 64-bit with 200% zoom).
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Mouse context menu is misplaced and non-standard UI in c

Postby Czarek » Tue Nov 25, 2014 1:39 pm

magreenblatt wrote:What apps are you referring to? The menu in screenshot 2 is the standard cefclient menu built in OnBeforeContextMenu. I have never seen the menu from screenshot 1.

My app is using OnBeforeContextMenu to customize menu, removes some items and adds some using CEF menu model API.

magreenblatt wrote:Did you check that "Disable display scaling on high DPI settings" option under cefclient preferences? That's necessary for the menu to be incorrectly positioned on my machine (Windows 8.1 64-bit with 200% zoom).

Yes, after selecting "disable display scaling.." menu is positioned incorrectly. Also now I see normal menu style in cefclient, same as in my app on screenshot 1.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], ndesktop and 40 guests