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:
parent
89c2536a77
commit
06855ed05d
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue