Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.0.781 preventing other items on the form from refreshing #875

Closed
ukandrewc opened this issue Jan 30, 2021 · 8 comments
Closed

V1.0.781 preventing other items on the form from refreshing #875

ukandrewc opened this issue Jan 30, 2021 · 8 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@ukandrewc
Copy link

ukandrewc commented Jan 30, 2021

Description
WebView2 V1.0.781 is preventing other items on the form from refreshing, and showing parts of other tab which is behind in z order. Presume this is something to do with new DefaultBackgroundColor, which I haven't tried changing yet.

Version
SDK: 1.0.781-prerelease
Runtime: 89.0.774.8 (Official build) dev (32-bit)
Framework: WinForms
OS: Win7 32

Repro Steps
I'm opening the same project as previous version. Other than Updating WebView2Loader.dll, Winforms.dll and Core.dll, I haven't made any code changes.

Screenshots
In this screenshot, the first tab (eBay) is at the front but the one behind seems to be showing through. This comes and goes when the content of the first tab changes. The colour of the 2nd tab hasn't changed to inactive.
2021-01-30_113853

Additional context

AB#31562565

@ukandrewc ukandrewc added the bug Something isn't working label Jan 30, 2021
@TF523
Copy link

TF523 commented Feb 1, 2021

@champnic
As an extension of this bug. We installed this prerelease and the control caused a loss of functionality on our tab control page. Tab required two clicks, otherwise controls were only half shown. And all controls lost their onhover events... We rolled back to previous pre-release...

Installed in windows VSTO addin taskpane tabbed page collection...

@champnic
Copy link
Member

champnic commented Feb 1, 2021

Thanks for the info. I've opened as a bug on our backlog and we'll take a look right away. @ukandrewc are you also using a specific tabbed control, or your own? If so, which control are you using?

@champnic champnic added the tracked We are tracking this work internally. label Feb 1, 2021
@ukandrewc
Copy link
Author

ukandrewc commented Feb 2, 2021

@champnic Not using a tabbed control, just adding WebView2 to form and bring to front when the Tab (a styled toolbar button) is clicked.

A Simplified example would be:

Dim Web1 As New WebView2
Dim Web2 As New WebView2

Sub Form_Load()
	'Add and bring first to front
	Controls.Add(Web1)
	Controls.Add(Web2)
	ToolstripBtn1.Click()
End Sub

ToolstripBtn1_Click()
	Web1.BringToFront()
End Sub

ToolstripBtn2_Click()
	Web2.BringToFront()
End Sub

Hope that gives you enough ;-)

@TF523
Copy link

TF523 commented Feb 2, 2021

Thanks for the info. I've opened as a bug on our backlog and we'll take a look right away. @ukandrewc are you also using a specific tabbed control, or your own? If so, which control are you using?

@champnic
We are using the standard tabbed page control from .net framework. This is the same vsto addin i have referenced previously...

When the tabbed page is single clicked the navigation controls are only partially visible. The tabbed page must be double clicked to show them properly. And the hover events for these controls no longer are active...

@AbeniMatteo
Copy link

@albahari found some problem with WM_PAINT, maybe it's related.

@champnic
Copy link
Member

champnic commented Feb 2, 2021

Thanks for finding this and linking the similar bug- I've opened a bug on our backlog and we're taking a look right away.

@ukandrewc
Copy link
Author

Workaround in #878 fixes the controls on the form not refreshing, but not transparency issues with Z Order of WebView2 controls on the same form.

@champnic
Copy link
Member

This should now be fixed in 1.0.790-prerelease SDK package. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

4 participants