Fix the issue where the language bar right-click menu does not respond.

This commit is contained in:
fanlusky committed 2026-07-17 23:38:14 +08:00
1 parent c7a06b4150
commit fd0cff71e9
3 files changed
+39 -5

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ void GetContainerSizeMenu(ComPtr<ICoreWebView2> webview, std::function<void(std:
{
std::wstring script = LR"(
(function() {
document.documentElement.style.overflow = "hidden";
document.body.style.overflow = "hidden";
var rect = document.getElementById("menuContainer").getBoundingClientRect();
return JSON.stringify({width: rect.width, height: rect.height});
})();