Fix the issue where the language bar right-click menu does not respond.
This commit is contained in:
1 parent
c7a06b4150
commit
fd0cff71e9
3 files changed
+39
-5
No files matched your search
@@ -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});
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user