1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

WebBrowserComponent: Windows: Trigger resized event on DPI change when using WebView2

This fixes a bug where moving a window between displays with different
scaling settings makes the embedded WebView misaligned.
This commit is contained in:
attila 2023-12-05 16:10:47 +01:00
parent 89c2536a77
commit 06855ed05d

View file

@ -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)