Skip to content

Commit c312603

Browse files
committed
Fix HTML <select> elements not opening
1 parent 35c92a1 commit c312603

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

windows/webview_windows_plugin.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#include <string>
1010
#include <unordered_map>
1111

12+
#include "util/string_converter.h"
1213
#include "webview_bridge.h"
1314
#include "webview_host.h"
1415
#include "webview_platform.h"
15-
#include "util/string_converter.h"
1616

1717
#pragma comment(lib, "dxgi.lib")
1818
#pragma comment(lib, "d3d11.lib")
@@ -151,9 +151,11 @@ void WebviewWindowsPlugin::HandleMethodCall(
151151

152152
if (method_call.method_name().compare(kMethodGetWebViewVersion) == 0) {
153153
LPWSTR version_info = nullptr;
154-
auto hr = GetAvailableCoreWebView2BrowserVersionString(nullptr, &version_info);
154+
auto hr =
155+
GetAvailableCoreWebView2BrowserVersionString(nullptr, &version_info);
155156
if (SUCCEEDED(hr) && version_info != nullptr) {
156-
return result->Success(flutter::EncodableValue(util::Utf8FromUtf16(version_info)));
157+
return result->Success(
158+
flutter::EncodableValue(util::Utf8FromUtf16(version_info)));
157159
} else {
158160
return result->Success();
159161
}
@@ -192,9 +194,9 @@ void WebviewWindowsPlugin::CreateWebviewInstance(
192194
}
193195
}
194196

195-
auto hwnd = CreateWindowEx(0, window_class_.lpszClassName, L"", 0, CW_DEFAULT,
196-
CW_DEFAULT, 0, 0, HWND_MESSAGE, nullptr,
197-
window_class_.hInstance, nullptr);
197+
auto hwnd =
198+
CreateWindowEx(0, window_class_.lpszClassName, L"", 0, 0, 0, 0, 0,
199+
HWND_MESSAGE, nullptr, window_class_.hInstance, nullptr);
198200

199201
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>>
200202
shared_result = std::move(result);

0 commit comments

Comments
 (0)