diff --git a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp index 80a1abbdf2..209c05025a 100644 --- a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp +++ b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp @@ -987,6 +987,12 @@ private: inline static WebView2ConstructionHelper webView2ConstructionHelper; + NativeScaleFactorNotifier scaleFactorNotifier { this, + [this] (auto) + { + componentMovedOrResized (true, true); + } }; + //============================================================================== JUCE_DECLARE_WEAK_REFERENCEABLE (WebView2) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebView2)