From 5b98066a48ea87e4fe26a10f9243624ad422ef5e Mon Sep 17 00:00:00 2001 From: attila Date: Mon, 26 Aug 2024 18:39:21 +0200 Subject: [PATCH] Windows: WebBrowserComponent: Fix visibility of initially not visible component Prior to this commit a WebBrowserComponent created with setVisible (false) would still be visible. --- .../juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp index 0d814a8a18..0f673b66db 100644 --- a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp +++ b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp @@ -974,6 +974,8 @@ private: void setWebViewPreferences() { + setControlVisible (owner.isShowing()); + ComSmartPtr controller2; webViewController->QueryInterface (controller2.resetAndGetPointerAddress());