Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 2ce2b5b

Browse files
committed
fix 9597
1 parent 59a44cb commit 2ce2b5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

appshell/client_handler_win.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ bool ClientHandler::OnKeyEvent(CefRefPtr<CefBrowser> browser,
123123

124124
void ClientHandler::ComputePopupPlacement(CefWindowInfo& windowInfo)
125125
{
126+
// both must be set to work
127+
if (windowInfo.width == CW_USEDEFAULT ||
128+
windowInfo.height == CW_USEDEFAULT) {
129+
return;
130+
}
131+
126132
RECT rectMainWnd;
127133
gMainWnd->GetWindowRect(&rectMainWnd);
128134

0 commit comments

Comments
 (0)