OutSystems / WebView

Avalonia/WPF control that wraps CefGlue webview control
Apache License 2.0
310 stars 38 forks source link

The right-clicked menu bar is not displayed correctly on Runtime Identifier "win-x64". #333

Closed ych98 closed 4 months ago

ych98 commented 4 months ago

image

joaompneves commented 4 months ago

Is this your app or the Sample App?

ych98 commented 4 months ago

This is true for both programs. By the way, it is normal on Mac computers with Apple chips.

joaompneves commented 4 months ago

On my M1 (apple) everything seems ok running this code: https://github.com/OutSystems/WebView/tree/avalonia11/SampleWebView.Avalonia

Don't have windows, so I can't help.

ych98 commented 4 months ago

I tried CefGlue.Demo.Avalonia and found that it has the same problem with win-x64. 1709258571900_C3B2B5EC-6D73-41cc-BF36-0B9F41545272 At the same time, I found out what the problem was. When I build on mac, the Resource folder is automatically generated and contains resource files such as locale.pak, while when I build on windows, there is no Resource folder, only the locales folder and the content is empty. image image It should be that the context menu is not displayed properly due to a resource loading issue.

ych98 commented 4 months ago

The problem is solved, I downloaded the corresponding version of the resource file from Chromium Embedded Framework (CEF) Automated Builds and manually added it to my project. Now the menu is displayed normally, and the CefGlue demo can solve the same problem exactly in the same way. image