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

Commit 38f4ead

Browse files
committed
rest hieght/width if only 1 value supplied
1 parent 2ce2b5b commit 38f4ead

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

appshell/client_handler_win.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ bool ClientHandler::OnKeyEvent(CefRefPtr<CefBrowser> browser,
126126
// both must be set to work
127127
if (windowInfo.width == CW_USEDEFAULT ||
128128
windowInfo.height == CW_USEDEFAULT) {
129+
// force both vals to be CW_USEDEFAULT in this
130+
// case because Windows doesn't correctly handle
131+
// only one value being is supplied on input
132+
windowInfo.width = CW_USEDEFAULT;
133+
windowInfo.height = CW_USEDEFAULT;
129134
return;
130135
}
131136

0 commit comments

Comments
 (0)