Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions appshell/client_handler_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ bool ClientHandler::OnKeyEvent(CefRefPtr<CefBrowser> browser,

void ClientHandler::ComputePopupPlacement(CefWindowInfo& windowInfo)
{
// both must be set to work
if (windowInfo.width == CW_USEDEFAULT ||
windowInfo.height == CW_USEDEFAULT) {
// force both vals to be CW_USEDEFAULT in this
// case because Windows doesn't correctly handle
// only one value being is supplied on input
windowInfo.width = CW_USEDEFAULT;
windowInfo.height = CW_USEDEFAULT;
return;
}

RECT rectMainWnd;
gMainWnd->GetWindowRect(&rectMainWnd);

Expand Down