Mercurial > dwindows
changeset 2044:b74b9afa31aa
Win: Fix Edge/Chromium HTML widgets in notebook/tabbed widgets not being visible.
When the size event is handled, check that the widget is visible, if not set it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 Nov 2019 03:16:45 +0000 |
parents | 82e5c998df2e |
children | cb195d76de8e |
files | win/edge.cpp |
diffstat | 1 files changed, 38 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/win/edge.cpp Sun Nov 24 22:42:55 2019 +0000 +++ b/win/edge.cpp Mon Nov 25 03:16:45 2019 +0000 @@ -194,9 +194,13 @@ VOID EdgeWebView::DoSize(VOID) { RECT bounds; + BOOL isVisible; GetClientRect(hWnd, &bounds); WebView->put_Bounds(bounds); + WebView->get_IsVisible(&isVisible); + if(!isVisible) + WebView->put_IsVisible(TRUE); } BOOL EdgeBrowser::Detect(VOID) @@ -220,45 +224,45 @@ // Call the desired function switch (action) { - case DW_HTML_GOBACK: - { - // Call the IWebView2WebView object's GoBack function. - WebView->GoBack(); - break; - } + case DW_HTML_GOBACK: + { + // Call the IWebView2WebView object's GoBack function. + WebView->GoBack(); + break; + } - case DW_HTML_GOFORWARD: - { - // Call the IWebView2WebView object's GoForward function. - WebView->GoForward(); - break; - } + case DW_HTML_GOFORWARD: + { + // Call the IWebView2WebView object's GoForward function. + WebView->GoForward(); + break; + } - case DW_HTML_GOHOME: - { - // Call the IWebView2WebView object's GoHome function. - dw_html_url(hWnd, (char*)DW_HOME_URL); - break; - } + case DW_HTML_GOHOME: + { + // Call the IWebView2WebView object's GoHome function. + dw_html_url(hWnd, (char*)DW_HOME_URL); + break; + } - case DW_HTML_SEARCH: - { - // Call the IWebView2WebView object's GoSearch function. - //WebView->GoSearch(); - break; - } + case DW_HTML_SEARCH: + { + // Call the IWebView2WebView object's GoSearch function. + //WebView->GoSearch(); + break; + } - case DW_HTML_RELOAD: - { - // Call the IWebView2WebView object's Refresh function. - WebView->Reload(); - } + case DW_HTML_RELOAD: + { + // Call the IWebView2WebView object's Refresh function. + WebView->Reload(); + } - case DW_HTML_STOP: - { - // Call the IWebView2WebView object's Stop function. - //WebView->Stop(); - } + case DW_HTML_STOP: + { + // Call the IWebView2WebView object's Stop function. + //WebView->Stop(); + } } } }