Skip to content

Commit 2834a3a

Browse files
authored
Added ZoomFactor
1 parent 3de406e commit 2834a3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

WebView2/WebView2.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ HRESULT Measure::CreateControllerHandler(HRESULT result, ICoreWebView2Controller
142142

143143
// Set initial visibility
144144
webViewController->put_IsVisible(visible ? TRUE : FALSE);
145-
145+
146+
// Set initial zoom factor
147+
webViewController->put_ZoomFactor(zoomFactor);
148+
146149
// Transparent background
147150
auto controller2 = webViewController.query<ICoreWebView2Controller2>();
148151
if (controller2)

0 commit comments

Comments
 (0)