Page 1 of 1

Broken context menu when osr mode

Posted: Sat Dec 17, 2022 3:50 pm
by Student
Hi Salvadordf, after update to version 108, in OSR mode, context menu always show in top left corner.

I also noticed that high dpi is now forced to activate under the scale of the system, tried these ways do not help disable high dpi for my application

Code: Select all

GlobalCEFApp.EnableHighDPISupport := false;
GlobalCEFApp.AddCustomCommandLine('force-device-scale-factor', '1');
I think high-dpi is at the level of the core chromium already is enabled.

Re: Broken context menu when osr mode

Posted: Sat Dec 17, 2022 4:37 pm
by salvadordf
Hi,

Thanks for reporting this!

I just tested the official CEF sample application and it shows the same problem. The TChromium.OnGetScreenPoint event has normal values for viewX and viewY but the context menu ignores the values in screenX and screenY.

I just created an issue in the CEF project:
https://bitbucket.org/chromiumembedded/cef/issues/3433/windows-context-menu-fixed-at-0-0-in-osr